Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001312/0.001312, 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.001114/0.001114, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9014/0.9014, allocations: 173.3 MB / 200.4 MB, free: 9.43 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.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.767e-05/2.974e-05, allocations: 6.219 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003161/0.003191, allocations: 2.683 MB / 321.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.004301, allocations: 0.6426 MB / 321.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.004457, allocations: 4 kB / 321.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.004629, allocations: 63.38 kB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.004771, allocations: 99.06 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.005031, allocations: 95.8 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003654/0.005397, allocations: 382.2 kB / 322.4 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.005628, allocations: 109.8 kB / 322.5 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.005932, allocations: 219.5 kB / 322.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.006072, allocations: 119.7 kB / 322.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.006119, allocations: 32 kB / 322.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.305e-05/0.006153, allocations: 32 kB / 322.9 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.533e-05/0.006198, allocations: 67.75 kB / 323 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.552e-05/0.006283, allocations: 115.7 kB / 323.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.006629, allocations: 390.7 kB / 323.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.006633, allocations: 0 / 323.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.006635, allocations: 0 / 323.5 MB, free: 1.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.006641, allocations: 4 kB / 323.5 MB, free: 1.285 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006763/0.007318, allocations: 0.5365 MB / 324 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.007367, allocations: 8.922 kB / 324 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.604e-05/0.007424, allocations: 74.72 kB / 324.1 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.23e-05/0.007476, allocations: 36.7 kB / 324.1 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.007754, allocations: 209.2 kB / 324.3 MB, free: 372 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.007772, allocations: 21.03 kB / 324.3 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.007809, allocations: 32.38 kB / 324.4 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.008193, allocations: 326 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.008204, allocations: 192 / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.008228, allocations: 16.12 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.008237, allocations: 8 kB / 324.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002844/0.008522, allocations: 206.4 kB / 324.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009639/0.009486, allocations: 0.8676 MB / 325.8 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.0097, allocations: 150.7 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.009814, allocations: 73.14 kB / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.009829, allocations: 4 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.009853, allocations: 46.34 kB / 326.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.422e-06/0.009855, allocations: 0 / 326.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003498/0.0102, allocations: 208.4 kB / 326.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.01023, allocations: 59.41 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.01042, allocations: 207.1 kB / 326.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.01044, allocations: 33.58 kB / 326.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.01052, allocations: 192.4 kB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.01056, allocations: 75.31 kB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.01061, allocations: 45.7 kB / 326.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.01069, allocations: 334.8 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.374e-05/0.01078, allocations: 59.97 kB / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.01096, allocations: 117.9 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.01117, allocations: 185.9 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01117, allocations: 0 / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002808/0.01145, allocations: 245.1 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.01146, allocations: 8 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01147, allocations: 0 / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.01149, allocations: 4.125 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.01166, allocations: 71.89 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.01166, allocations: 4 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.24e-05/0.01174, allocations: 19.89 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.01175, allocations: 11.98 kB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.487e-05/0.01184, allocations: 141.8 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.01187, allocations: 23.8 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002446/0.01212, allocations: 183.4 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01212, allocations: 8 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.01212, allocations: 0 / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01213, allocations: 3.938 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.01235, allocations: 268.5 kB / 328.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.01236, allocations: 3.984 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.01251, allocations: 55.91 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.01252, allocations: 3.938 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.01253, allocations: 8 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.01253, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01253, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.01287, allocations: 347.9 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.01289, allocations: 23.73 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.01292, allocations: 16.03 kB / 329 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.013, allocations: 15.98 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.01304, allocations: 11.97 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.01305, allocations: 4 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002055/0.01325, allocations: 160.4 kB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01325, allocations: 0 / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002148/0.01347, allocations: 75.78 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005217/0.01399, allocations: 0.8854 MB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002588/0.01425, allocations: 156.1 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.01425, allocations: 0 / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.776e-05/0.01434, allocations: 75.77 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.01458, allocations: 24 kB / 330.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.01684, allocations: 2.571 MB / 332.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.01694, allocations: 159.1 kB / 333.1 MB, free: 7.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.849e-05/0.01701, allocations: 21.94 kB / 333.1 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.01712, allocations: 96.45 kB / 333.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01713, allocations: 0 / 333.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.03815, allocations: 5.322 MB / 338.5 MB, free: 1.867 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.944/6.982, allocations: 4.062 kB / 338.5 MB, free: 1.863 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineVoltage.phi in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.00595694873482]