Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 59.89 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2657, allocations: 53.41 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004264/0.2699, allocations: 2.998 MB / 434.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2712, allocations: 0.7402 MB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2714, allocations: 15.88 kB / 435 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.2716, allocations: 55.44 kB / 435 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.2718, allocations: 111.1 kB / 435.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.272, allocations: 99.89 kB / 435.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.2725, allocations: 418.3 kB / 435.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.2727, allocations: 91.66 kB / 435.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.2729, allocations: 159.4 kB / 435.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2732, allocations: 171.2 kB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.419e-05/0.2732, allocations: 44 kB / 436.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.2733, allocations: 40 kB / 436.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.743e-05/0.2734, allocations: 83.69 kB / 436.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.2735, allocations: 183.1 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004968/0.274, allocations: 458.7 kB / 436.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.274, allocations: 0 / 436.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.274, allocations: 0 / 436.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.2741, allocations: 0 / 436.8 MB, free: 1.023 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001162/0.2752, allocations: 0.6014 MB / 437.4 MB, free: 396 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2753, allocations: 12.03 kB / 437.5 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.81e-05/0.2753, allocations: 62.72 kB / 437.5 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.2754, allocations: 32.75 kB / 437.5 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.2758, allocations: 253.8 kB / 437.8 MB, free: 0 / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.488e-05/0.2759, allocations: 21.08 kB / 437.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.2759, allocations: 24.38 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.2765, allocations: 294.1 kB / 438.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2765, allocations: 0 / 438.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.2766, allocations: 12 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.2766, allocations: 4 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000644/0.2772, allocations: 266.4 kB / 438.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.279, allocations: 1.064 MB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006176/0.2796, allocations: 214.6 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.2799, allocations: 88.8 kB / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.2799, allocations: 0 / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004242/0.2803, allocations: 193.5 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.2803, allocations: 0 / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001541/0.2818, allocations: 442.2 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/0.2819, allocations: 136.5 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.2823, allocations: 281.9 kB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.2823, allocations: 29.7 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.2824, allocations: 200 kB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.2825, allocations: 55.55 kB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.741e-05/0.2826, allocations: 57.59 kB / 441.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2827, allocations: 338.8 kB / 441.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.283, allocations: 95.94 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.2833, allocations: 196.6 kB / 441.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005762/0.2839, allocations: 277.6 kB / 442 MB, free: 11.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2839, allocations: 4 kB / 442 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009411/0.2849, allocations: 407.9 kB / 442.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.2849, allocations: 40.2 kB / 442.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2849, allocations: 3.938 kB / 442.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.2853, allocations: 76.78 kB / 442.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.2855, allocations: 47.91 kB / 442.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.2878, allocations: 1.711 MB / 444.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.2881, allocations: 51.91 kB / 444.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.2881, allocations: 8 kB / 444.4 MB, free: 9.027 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (gain.opAmp.satNeg,gain.opAmp.satPos,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 (24): * Single equations (assignments): 22 * 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.0001955/0.2883, allocations: 163.8 kB / 444.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.2884, allocations: 31.81 kB / 444.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.317e-05/0.2884, allocations: 30.09 kB / 444.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2884, allocations: 7.984 kB / 444.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2885, allocations: 0 / 444.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2885, allocations: 0 / 444.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.2888, allocations: 300.5 kB / 444.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2888, allocations: 0 / 444.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.2889, allocations: 23.97 kB / 444.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002754/0.2892, allocations: 72.8 kB / 445 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.2892, allocations: 3.984 kB / 445 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.2913, allocations: 1.711 MB / 446.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2913, allocations: 0 / 446.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.2921, allocations: 321.5 kB / 447 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.2922, allocations: 19.86 kB / 447 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2922, allocations: 4 kB / 447 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.2924, allocations: 35.95 kB / 447.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.2925, allocations: 23.95 kB / 447.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.2925, allocations: 11.94 kB / 447.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002376/0.2928, allocations: 201.2 kB / 447.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2928, allocations: 0 / 447.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003936/0.2932, allocations: 91.78 kB / 447.4 MB, free: 5.809 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: 5 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count,gain.opAmp.satPos,gain.opAmp.satNeg) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.001283/0.2944, allocations: 0.8465 MB / 448.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009657/0.2954, allocations: 413.7 kB / 448.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2954, allocations: 0 / 448.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004331/0.2958, allocations: 231.2 kB / 448.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2962, allocations: 48.41 kB / 448.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005771/0.302, allocations: 3.101 MB / 452 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.3024, allocations: 0.7603 MB / 452.8 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.3026, allocations: 30.2 kB / 452.8 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.3027, allocations: 87.41 kB / 452.9 MB, free: 60 kB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3027, allocations: 0 / 452.9 MB, free: 60 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/0.3411, allocations: 7.417 MB / 460.3 MB, free: 8.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.7, allocations: 8 kB / 460.3 MB, free: 8.781 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.137596374999703]