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.00184/0.00184, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001625/0.001625, allocations: 212.3 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.403/1.403, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001475/0.001475, allocations: 59.91 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2527, allocations: 53.38 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004269/0.2569, allocations: 2.757 MB / 433.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2583, allocations: 0.7207 MB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.2584, allocations: 4 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.2586, allocations: 51.5 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.2588, allocations: 107.2 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.2591, allocations: 119.8 kB / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004487/0.2595, allocations: 418.4 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.2598, allocations: 97.34 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.26, allocations: 159.4 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2602, allocations: 171.3 kB / 435.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.02e-05/0.2602, allocations: 40 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.496e-05/0.2603, allocations: 44 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.099e-05/0.2604, allocations: 83.69 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.2605, allocations: 139.4 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.261, allocations: 462.2 kB / 436.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.261, allocations: 0 / 436.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.261, allocations: 0 / 436.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.261, allocations: 0 / 436.5 MB, free: 1.258 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001294/0.2623, allocations: 0.6053 MB / 437.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.2624, allocations: 8.031 kB / 437.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.061e-05/0.2625, allocations: 62.72 kB / 437.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.2625, allocations: 40.7 kB / 437.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.263, allocations: 253.7 kB / 437.4 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.263, allocations: 24.81 kB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.263, allocations: 24.38 kB / 437.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007333/0.2638, allocations: 378.2 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.2638, allocations: 0 / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.2638, allocations: 12 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.2638, allocations: 7.938 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007733/0.2646, allocations: 285.8 kB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.2665, allocations: 1.022 MB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008029/0.2673, allocations: 242.6 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/0.2676, allocations: 104.7 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.2676, allocations: 0 / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.2681, allocations: 237.3 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.2681, allocations: 0 / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002246/0.2704, allocations: 0.5838 MB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.2705, allocations: 106.8 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.2708, allocations: 289.8 kB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2708, allocations: 29.7 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.2709, allocations: 208 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.271, allocations: 39.69 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.515e-05/0.2711, allocations: 53.89 kB / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2712, allocations: 330.8 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.2716, allocations: 138.3 kB / 441.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.272, allocations: 289.9 kB / 441.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006998/0.2727, allocations: 307.7 kB / 442.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2727, allocations: 4 kB / 442.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001249/0.274, allocations: 0.4961 MB / 442.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.273e-05/0.274, allocations: 33.7 kB / 442.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.274, allocations: 8.062 kB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003608/0.2744, allocations: 80.8 kB / 442.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.2746, allocations: 51.89 kB / 442.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.2772, allocations: 1.875 MB / 444.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003161/0.2775, allocations: 59.81 kB / 444.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.2776, allocations: 12.06 kB / 444.7 MB, free: 8.492 MB / 350.1 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.0001671/0.2777, allocations: 149.8 kB / 444.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.2778, allocations: 27.86 kB / 444.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.2778, allocations: 29.77 kB / 444.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2778, allocations: 0 / 444.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-06/0.2778, allocations: 0 / 444.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2778, allocations: 0 / 444.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.2781, allocations: 268.5 kB / 445.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2781, allocations: 4 kB / 445.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.2783, allocations: 27.91 kB / 445.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.2785, allocations: 80.73 kB / 445.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2785, allocations: 4 kB / 445.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.2808, allocations: 1.694 MB / 447 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2808, allocations: 0 / 447 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.2819, allocations: 376.6 kB / 447.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.2819, allocations: 31.78 kB / 447.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.282, allocations: 0 / 447.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.2822, allocations: 31.97 kB / 447.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.2823, allocations: 23.95 kB / 447.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2823, allocations: 7.938 kB / 447.4 MB, free: 5.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002076/0.2825, allocations: 201.2 kB / 447.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2825, allocations: 4 kB / 447.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.2829, allocations: 79.84 kB / 447.7 MB, free: 5.285 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 (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.001382/0.2843, allocations: 0.898 MB / 448.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.2853, allocations: 447.4 kB / 449 MB, free: 3.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2853, allocations: 4.688 kB / 449 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.2858, allocations: 238.5 kB / 449.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.2861, allocations: 48.39 kB / 449.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.2915, allocations: 3.231 MB / 452.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.2916, allocations: 146.9 kB / 452.7 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.2917, allocations: 30.33 kB / 452.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.2919, allocations: 79.36 kB / 452.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2919, allocations: 8 kB / 452.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03862/0.3305, allocations: 7.608 MB / 460.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.51, allocations: 15.48 kB / 460.4 MB, free: 8.473 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/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: 14.96493024501251]