Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001273/0.001273, allocations: 112.4 kB / 20.43 MB, free: 1.449 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.001402/0.001402, allocations: 190.4 kB / 23.72 MB, free: 4.684 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.512/1.512, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 48.02 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2555, allocations: 52.2 MB / 422.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004803/0.2603, allocations: 2.946 MB / 425.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2617, allocations: 0.7479 MB / 426.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.2618, allocations: 7.938 kB / 426.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.262, allocations: 51.5 kB / 426.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.2622, allocations: 107.2 kB / 426.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.2625, allocations: 111.8 kB / 426.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004866/0.263, allocations: 418.4 kB / 427 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.2632, allocations: 91.69 kB / 427.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.2635, allocations: 163.4 kB / 427.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.2637, allocations: 171.2 kB / 427.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.333e-05/0.2638, allocations: 40 kB / 427.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.2638, allocations: 40 kB / 427.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.38e-05/0.2639, allocations: 75.77 kB / 427.6 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.2641, allocations: 179.1 kB / 427.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005424/0.2646, allocations: 454.7 kB / 428.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.2647, allocations: 0 / 428.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2647, allocations: 0 / 428.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.2647, allocations: 0 / 428.2 MB, free: 9.137 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.001382/0.266, allocations: 0.6092 MB / 428.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.2661, allocations: 12.03 kB / 428.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.505e-05/0.2662, allocations: 62.73 kB / 428.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.472e-05/0.2663, allocations: 32.75 kB / 428.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.2667, allocations: 245.8 kB / 429.2 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.2667, allocations: 20.88 kB / 429.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.906e-05/0.2668, allocations: 24.38 kB / 429.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.2675, allocations: 326.8 kB / 429.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2675, allocations: 0 / 429.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.2675, allocations: 15.94 kB / 429.6 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2675, allocations: 4 kB / 429.6 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007814/0.2683, allocations: 293.7 kB / 429.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.2703, allocations: 1.112 MB / 431 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008174/0.2711, allocations: 238.6 kB / 431.2 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.2714, allocations: 100.8 kB / 431.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.2714, allocations: 4 kB / 431.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004874/0.2719, allocations: 181.8 kB / 431.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.492e-06/0.2719, allocations: 0 / 431.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002231/0.2742, allocations: 0.5915 MB / 432.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/0.2742, allocations: 110.8 kB / 432.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.2746, allocations: 281.8 kB / 432.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.2746, allocations: 25.7 kB / 432.5 MB, free: 4.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.2748, allocations: 204 kB / 432.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.2748, allocations: 43.69 kB / 432.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.2749, allocations: 53.89 kB / 432.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.275, allocations: 338.8 kB / 433.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003334/0.2754, allocations: 100.4 kB / 433.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.2758, allocations: 206.9 kB / 433.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007101/0.2765, allocations: 307.8 kB / 433.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2765, allocations: 0 / 433.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001245/0.2777, allocations: 475.7 kB / 434.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.932e-05/0.2778, allocations: 33.75 kB / 434.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.2778, allocations: 8 kB / 434.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003946/0.2782, allocations: 81.02 kB / 434.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.2784, allocations: 51.91 kB / 434.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.2811, allocations: 1.902 MB / 436.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000346/0.2814, allocations: 47.81 kB / 436.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.2814, allocations: 19.92 kB / 436.3 MB, free: 0.5703 MB / 334.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.0001745/0.2816, allocations: 153.8 kB / 436.5 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.2817, allocations: 23.86 kB / 436.5 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.222e-05/0.2817, allocations: 25.77 kB / 436.5 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2817, allocations: 4 kB / 436.5 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.2817, allocations: 0 / 436.5 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2817, allocations: 0 / 436.5 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.282, allocations: 288.5 kB / 436.8 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.282, allocations: 0 / 436.8 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.2822, allocations: 27.97 kB / 436.8 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003002/0.2825, allocations: 84.73 kB / 436.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.2825, allocations: 0 / 436.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002316/0.2848, allocations: 1.718 MB / 438.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2848, allocations: 4.031 kB / 438.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.2858, allocations: 364.4 kB / 439 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.2859, allocations: 35.84 kB / 439 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.2859, allocations: 3.938 kB / 439 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.2862, allocations: 35.95 kB / 439 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.2862, allocations: 19.97 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.2863, allocations: 3.938 kB / 439.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000212/0.2865, allocations: 205.2 kB / 439.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2865, allocations: 0 / 439.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.2868, allocations: 83.84 kB / 439.4 MB, free: 13.32 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.001366/0.2882, allocations: 0.8975 MB / 440.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009871/0.2892, allocations: 433.9 kB / 440.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2892, allocations: 0 / 440.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.2897, allocations: 230.4 kB / 440.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.29, allocations: 58.3 kB / 441 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005233/0.2952, allocations: 3.104 MB / 444.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.2956, allocations: 0.7558 MB / 444.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.2957, allocations: 22.3 kB / 444.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.2959, allocations: 83.41 kB / 444.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2959, allocations: 0 / 444.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.3356, allocations: 7.077 MB / 452 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.03, allocations: 11.44 kB / 452 MB, free: 0.5898 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.63250613299897]