Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009629/0.0009629, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9587/0.9587, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 324.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.429e-05, allocations: 6.219 kB / 324.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003046/0.003071, allocations: 2.763 MB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.004107, allocations: 0.7324 MB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.004266, allocations: 7.938 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.004436, allocations: 43.56 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.004607, allocations: 123 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.004906, allocations: 115.8 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.005289, allocations: 430.1 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.005489, allocations: 87.61 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.005694, allocations: 231.5 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.005829, allocations: 127.6 kB / 329.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.52e-05/0.005874, allocations: 40 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.813e-05/0.005912, allocations: 40 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.005969, allocations: 83.67 kB / 329.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.702e-05/0.006066, allocations: 119.7 kB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.006437, allocations: 474.6 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.006441, allocations: 0 / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.006443, allocations: 0 / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.006449, allocations: 0 / 330 MB, free: 10.36 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0008976/0.007347, allocations: 0.6081 MB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.007389, allocations: 8.031 kB / 330.6 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.882e-05/0.007448, allocations: 66.66 kB / 330.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.606e-05/0.007504, allocations: 36.7 kB / 330.7 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.007825, allocations: 245.2 kB / 331 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.007846, allocations: 20.81 kB / 331 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.007877, allocations: 28.38 kB / 331 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.008386, allocations: 382.6 kB / 331.4 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.008397, allocations: 192 / 331.4 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.008422, allocations: 12.12 kB / 331.4 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.00843, allocations: 8 kB / 331.4 MB, free: 8.871 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.00888, allocations: 277.8 kB / 331.7 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.01007, allocations: 1.031 MB / 332.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004947/0.01056, allocations: 246.5 kB / 332.9 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.01074, allocations: 104.8 kB / 333 MB, free: 7.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.01076, allocations: 3.938 kB / 333 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003383/0.0111, allocations: 229.3 kB / 333.3 MB, free: 6.875 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.364e-06/0.0111, allocations: 0 / 333.3 MB, free: 6.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001261/0.01236, allocations: 0.5877 MB / 333.9 MB, free: 6.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.01242, allocations: 106.8 kB / 334 MB, free: 6.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.01262, allocations: 277.9 kB / 334.2 MB, free: 5.863 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.01264, allocations: 33.7 kB / 334.3 MB, free: 5.824 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.01274, allocations: 204 kB / 334.5 MB, free: 5.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.01277, allocations: 43.69 kB / 334.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.01283, allocations: 53.89 kB / 334.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.873e-05/0.01293, allocations: 334.8 kB / 334.9 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.01314, allocations: 134 kB / 335 MB, free: 5.043 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.01339, allocations: 290.2 kB / 335.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.01378, allocations: 314.8 kB / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.01378, allocations: 0 / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007039/0.01449, allocations: 0.4975 MB / 336.1 MB, free: 3.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.01452, allocations: 33.7 kB / 336.1 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.01453, allocations: 0 / 336.1 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002809/0.01481, allocations: 88.86 kB / 336.2 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.01493, allocations: 47.91 kB / 336.3 MB, free: 3.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.0167, allocations: 1.879 MB / 338.1 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.01701, allocations: 51.73 kB / 338.2 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.01703, allocations: 19.94 kB / 338.2 MB, free: 1.594 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.01715, allocations: 152.5 kB / 338.4 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.01718, allocations: 23.86 kB / 338.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.01721, allocations: 25.77 kB / 338.4 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.01721, allocations: 4 kB / 338.4 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01721, allocations: 0 / 338.4 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01722, allocations: 3.984 kB / 338.4 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.01742, allocations: 264.4 kB / 338.7 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01742, allocations: 0 / 338.7 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.01749, allocations: 19.98 kB / 338.7 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001804/0.01767, allocations: 84.8 kB / 338.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.01768, allocations: 0 / 338.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.01917, allocations: 1.697 MB / 340.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01918, allocations: 0 / 340.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005688/0.01974, allocations: 369.6 kB / 340.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.234e-05/0.01978, allocations: 23.8 kB / 340.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.0198, allocations: 11.98 kB / 340.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.01991, allocations: 31.97 kB / 340.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.01998, allocations: 19.97 kB / 340.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.01999, allocations: 0 / 340.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000135/0.02013, allocations: 209.1 kB / 341.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02013, allocations: 0 / 341.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00027/0.0204, allocations: 79.84 kB / 341.2 MB, free: 14.41 MB / 314.7 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008127/0.02121, allocations: 0.9019 MB / 342.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006618/0.02187, allocations: 459.4 kB / 342.6 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.02187, allocations: 0 / 342.6 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.02215, allocations: 235.1 kB / 342.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.02241, allocations: 48.59 kB / 342.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.02622, allocations: 3.233 MB / 346.1 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.02633, allocations: 146.9 kB / 346.2 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.02643, allocations: 26.28 kB / 346.2 MB, free: 9.105 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.02655, allocations: 84.47 kB / 346.3 MB, free: 9.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.02655, allocations: 0 / 346.3 MB, free: 9.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.05081, allocations: 7.698 MB / 354 MB, free: 1.504 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/7.871, allocations: 7.5 kB / 354 MB, free: 1.5 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gain.opAmp.out.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.72960406448692]