Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 188 kB / 23.7 MB, free: 4.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 51.92 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2807, allocations: 52.18 MB / 422.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004768/0.2855, allocations: 2.612 MB / 425.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.287, allocations: 0.6193 MB / 425.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.2873, allocations: 4 kB / 425.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.2875, allocations: 47.5 kB / 425.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003757/0.2879, allocations: 95.19 kB / 426 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.2882, allocations: 87.89 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005524/0.2888, allocations: 378.5 kB / 426.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.289, allocations: 85.03 kB / 426.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.2893, allocations: 151.4 kB / 426.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.2895, allocations: 139.3 kB / 426.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.575e-05/0.2896, allocations: 32 kB / 426.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.54e-05/0.2897, allocations: 36 kB / 426.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.743e-05/0.2898, allocations: 75.7 kB / 426.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.29, allocations: 147.3 kB / 427.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004871/0.2905, allocations: 378.5 kB / 427.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2905, allocations: 4 kB / 427.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2905, allocations: 0 / 427.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.2905, allocations: 0 / 427.4 MB, free: 9.645 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001538/0.2921, allocations: 0.5819 MB / 428 MB, free: 9.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.2921, allocations: 8.031 kB / 428 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.621e-05/0.2922, allocations: 62.72 kB / 428.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.2923, allocations: 36.75 kB / 428.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.2928, allocations: 215 kB / 428.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.2928, allocations: 16.88 kB / 428.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.2929, allocations: 28.31 kB / 428.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.2936, allocations: 358 kB / 428.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.2936, allocations: 0 / 428.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.2937, allocations: 12 kB / 428.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2937, allocations: 4 kB / 428.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008319/0.2945, allocations: 257.5 kB / 429 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.2964, allocations: 0.9769 MB / 430 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007774/0.2972, allocations: 202.5 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003119/0.2975, allocations: 88.78 kB / 430.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.2975, allocations: 0 / 430.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004794/0.298, allocations: 225.3 kB / 430.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.298, allocations: 3.938 kB / 430.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002025/0.3, allocations: 437.8 kB / 430.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.3001, allocations: 106.8 kB / 431 MB, free: 5.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.3004, allocations: 289.8 kB / 431.3 MB, free: 5.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.3005, allocations: 25.7 kB / 431.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3006, allocations: 208.1 kB / 431.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.3007, allocations: 47.62 kB / 431.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.68e-05/0.3008, allocations: 49.94 kB / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3009, allocations: 330.8 kB / 431.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.3013, allocations: 121.9 kB / 432.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.3017, allocations: 287.2 kB / 432.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007118/0.3024, allocations: 305.3 kB / 432.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3025, allocations: 7.938 kB / 432.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001237/0.3037, allocations: 453.5 kB / 433.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.527e-05/0.3037, allocations: 37.7 kB / 433.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3038, allocations: 7.938 kB / 433.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.3041, allocations: 72.89 kB / 433.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.3043, allocations: 47.91 kB / 433.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.3068, allocations: 1.6 MB / 434.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.3072, allocations: 55.7 kB / 434.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.3072, allocations: 8.188 kB / 434.9 MB, free: 1.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.3073, allocations: 157.2 kB / 435.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.3074, allocations: 27.86 kB / 435.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.3074, allocations: 29.7 kB / 435.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3074, allocations: 4 kB / 435.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.3075, allocations: 0 / 435.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3075, allocations: 0 / 435.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.3077, allocations: 240.6 kB / 435.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3077, allocations: 0 / 435.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3079, allocations: 19.97 kB / 435.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002672/0.3081, allocations: 76.75 kB / 435.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3081, allocations: 0 / 435.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/0.3104, allocations: 1.593 MB / 437.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3104, allocations: 192 / 437.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3114, allocations: 313.5 kB / 437.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3115, allocations: 43.72 kB / 437.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.708e-05/0.3115, allocations: 4 kB / 437.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.3118, allocations: 27.97 kB / 437.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.3119, allocations: 27.95 kB / 437.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.3119, allocations: 7.938 kB / 437.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002164/0.3121, allocations: 205.2 kB / 437.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3121, allocations: 0 / 437.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.3124, allocations: 75.89 kB / 437.7 MB, free: 14.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001352/0.3138, allocations: 0.8489 MB / 438.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009997/0.3148, allocations: 435.4 kB / 439 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3148, allocations: 0 / 439 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.3153, allocations: 231.3 kB / 439.2 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3156, allocations: 35.62 kB / 439.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005344/0.3209, allocations: 3.111 MB / 442.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.321, allocations: 142.9 kB / 442.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.3212, allocations: 26.28 kB / 442.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3213, allocations: 79.42 kB / 442.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3213, allocations: 0 / 442.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05214/0.3734, allocations: 7.431 MB / 450.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.17, allocations: 6.75 kB / 450.1 MB, free: 2.156 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vIn.signalSource.y in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv. Warning: Get data of variable vIn.signalSource.y from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.650462557096034]