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.0008359/0.0008359, allocations: 76.08 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.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.0009019/0.0009019, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8856/0.8856, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.432e-06/1.432e-06, allocations: 3.938 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15e-05/1.293e-05, allocations: 2.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002566/0.002579, allocations: 2.598 MB / 321 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.003485, allocations: 0.631 MB / 321.7 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.003599, allocations: 4 kB / 321.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.003722, allocations: 43.52 kB / 321.7 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.003868, allocations: 99.06 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.00408, allocations: 91.88 kB / 321.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.00437, allocations: 386.3 kB / 322.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.004524, allocations: 91.27 kB / 322.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.004709, allocations: 215.5 kB / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.004834, allocations: 123.6 kB / 322.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.004873, allocations: 36 kB / 322.7 MB, free: 2.008 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.03e-05/0.004904, allocations: 32 kB / 322.8 MB, free: 1.977 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.917e-05/0.004953, allocations: 71.73 kB / 322.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.662e-05/0.005039, allocations: 119.7 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.005327, allocations: 386.9 kB / 323.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005329, allocations: 7.938 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.00533, allocations: 0 / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.005335, allocations: 0 / 323.3 MB, free: 1.402 MB / 282.7 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.0008189/0.006154, allocations: 0.5812 MB / 323.9 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.006191, allocations: 8.922 kB / 323.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.006238, allocations: 66.72 kB / 324 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.006289, allocations: 32.75 kB / 324 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.00654, allocations: 214.2 kB / 324.2 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.006558, allocations: 20.88 kB / 324.3 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.006584, allocations: 24.38 kB / 324.3 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004109/0.006995, allocations: 354.7 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.007004, allocations: 192 / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.007022, allocations: 8.125 kB / 324.6 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.007029, allocations: 11.98 kB / 324.7 MB, free: 4 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.007454, allocations: 257.8 kB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.008456, allocations: 0.9782 MB / 325.9 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004137/0.008869, allocations: 194.5 kB / 326.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.009026, allocations: 92.81 kB / 326.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.009043, allocations: 7.938 kB / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.009308, allocations: 213.3 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 8.82e-07/0.009309, allocations: 0 / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001037/0.01035, allocations: 453.8 kB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.01039, allocations: 102.8 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.01059, allocations: 289.8 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.01061, allocations: 25.7 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.964e-05/0.0107, allocations: 208 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.01072, allocations: 43.62 kB / 327.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.01078, allocations: 53.94 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.123e-05/0.01086, allocations: 334.8 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.01105, allocations: 121.8 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.01128, allocations: 283.2 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003674/0.01165, allocations: 304.8 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01165, allocations: 0 / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006236/0.01228, allocations: 465.4 kB / 329 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.0123, allocations: 33.7 kB / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.01231, allocations: 0 / 329 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002067/0.01251, allocations: 80.73 kB / 329.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.01263, allocations: 44.06 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.01397, allocations: 1.6 MB / 330.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.01414, allocations: 51.75 kB / 330.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.01415, allocations: 16 kB / 330.8 MB, free: 9.355 MB / 298.7 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.0001081/0.01426, allocations: 149.7 kB / 331 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.417e-05/0.01428, allocations: 27.84 kB / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.663e-05/0.01431, allocations: 21.78 kB / 331 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.01431, allocations: 7.984 kB / 331 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.01432, allocations: 0 / 331 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01432, allocations: 3.984 kB / 331 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.0145, allocations: 236.6 kB / 331.3 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.0145, allocations: 3.938 kB / 331.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.798e-05/0.01456, allocations: 19.98 kB / 331.3 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.01471, allocations: 68.8 kB / 331.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.01472, allocations: 0 / 331.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.01593, allocations: 1.604 MB / 333 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.01593, allocations: 3.938 kB / 333 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.01643, allocations: 306 kB / 333.3 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.416e-05/0.0165, allocations: 35.78 kB / 333.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.01652, allocations: 8 kB / 333.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.01663, allocations: 23.97 kB / 333.3 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.171e-05/0.0167, allocations: 27.95 kB / 333.4 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.01671, allocations: 4 kB / 333.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001342/0.01684, allocations: 205.1 kB / 333.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01684, allocations: 0 / 333.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.01708, allocations: 83.83 kB / 333.6 MB, free: 6.348 MB / 298.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 (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.0007219/0.0178, allocations: 0.8549 MB / 334.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00056/0.01836, allocations: 435.6 kB / 334.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01836, allocations: 0 / 334.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.0186, allocations: 227.1 kB / 335.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.0188, allocations: 44.06 kB / 335.2 MB, free: 4.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.02188, allocations: 3.107 MB / 338.3 MB, free: 1.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.567e-05/0.02197, allocations: 142.9 kB / 338.4 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.277e-05/0.02204, allocations: 30.27 kB / 338.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/0.02213, allocations: 80.47 kB / 338.5 MB, free: 1.16 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02213, allocations: 0 / 338.5 MB, free: 1.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.04273, allocations: 7.56 MB / 346.1 MB, free: 9.781 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/7.904, allocations: 11.17 kB / 346.1 MB, free: 9.773 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/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: 9.641039486043155]