Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001406/0.001406, allocations: 132.4 kB / 17.8 MB, free: 5.219 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.001638/0.001638, allocations: 210.5 kB / 20.75 MB, free: 2.27 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.483/1.483, allocations: 230.4 MB / 254 MB, free: 15.17 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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 55.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.1002, allocations: 53.38 MB / 426.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01607/0.1163, allocations: 14.77 MB / 441.1 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2335/0.3498, allocations: 20.77 MB / 461.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003081/0.3529, allocations: 140.6 kB / 462 MB, free: 6.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004204/0.3571, allocations: 1.238 MB / 463.3 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009938/0.367, allocations: 2.311 MB / 465.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006522/0.3735, allocations: 1.45 MB / 467 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.3853, allocations: 6.586 MB / 473.6 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007454/0.3861, allocations: 274.2 kB / 473.9 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002402/0.3885, allocations: 1.145 MB / 475 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00193/0.3904, allocations: 1.108 MB / 476.1 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003333/0.3907, allocations: 74.84 kB / 476.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005609/0.3963, allocations: 1.484 MB / 477.7 MB, free: 272 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000555/0.3969, allocations: 329.2 kB / 478 MB, free: 40 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002472/0.3994, allocations: 1.369 MB / 479.4 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007808/0.4072, allocations: 3.799 MB / 483.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4072, allocations: 0 / 483.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4072, allocations: 0 / 483.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001059/0.4073, allocations: 0 / 483.2 MB, free: 13.18 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007707/0.415, allocations: 3.807 MB / 487 MB, free: 10.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.415, allocations: 19.44 kB / 487 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000162/0.4152, allocations: 101.3 kB / 487.1 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008137/0.416, allocations: 410.9 kB / 487.5 MB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004287/0.4203, allocations: 2.447 MB / 489.9 MB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.4203, allocations: 34.16 kB / 490 MB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.4205, allocations: 57.39 kB / 490 MB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.4219, allocations: 0.7317 MB / 490.8 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.422, allocations: 0 / 490.8 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.951e-05/0.4221, allocations: 24.11 kB / 490.8 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.4221, allocations: 21.69 kB / 490.8 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.4237, allocations: 0.8198 MB / 491.6 MB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006566/0.4303, allocations: 3.048 MB / 494.7 MB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.4315, allocations: 0.5223 MB / 495.2 MB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009656/0.4325, allocations: 0.5622 MB / 495.8 MB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03478/0.4673, allocations: 30.75 MB / 0.5142 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008664/0.4681, allocations: 373.5 kB / 0.5145 GB, free: 1.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.4681, allocations: 1.125 kB / 0.5145 GB, free: 1.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002772/0.4709, allocations: 1.107 MB / 0.5156 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.471, allocations: 63.41 kB / 0.5157 GB, free: 432 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/0.4753, allocations: 2.931 MB / 0.5185 GB, free: 13.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.4754, allocations: 37.7 kB / 0.5186 GB, free: 13.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.4768, allocations: 1.502 MB / 0.52 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.4771, allocations: 174.6 kB / 0.5202 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/0.4774, allocations: 226.4 kB / 0.5204 GB, free: 11.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.4776, allocations: 337.9 kB / 0.5207 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006738/0.4783, allocations: 241.9 kB / 0.521 GB, free: 10.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009358/0.4792, allocations: 0.602 MB / 0.5216 GB, free: 10.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.4808, allocations: 0.898 MB / 0.5224 GB, free: 9.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.4808, allocations: 7.938 kB / 0.5224 GB, free: 9.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00273/0.4836, allocations: 1.243 MB / 0.5237 GB, free: 7.848 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.4836, allocations: 15.92 kB / 0.5237 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.4837, allocations: 80 kB / 0.5238 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.4838, allocations: 20.81 kB / 0.5238 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008031/0.4846, allocations: 200.1 kB / 0.524 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.771e-05/0.4846, allocations: 31.86 kB / 0.524 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4861, allocations: 119.2 kB / 0.5241 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.4863, allocations: 60 kB / 0.5242 GB, free: 7.332 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 0.0008672/0.4871, allocations: 433.5 kB / 0.5246 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006641/0.4878, allocations: 397.5 kB / 0.525 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.4908, allocations: 1.198 MB / 0.5261 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.4908, allocations: 4 kB / 0.5261 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4908, allocations: 3.984 kB / 0.5261 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4908, allocations: 4 kB / 0.5261 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004303/0.4951, allocations: 2.092 MB / 0.5282 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000101/0.4952, allocations: 72 kB / 0.5283 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.4957, allocations: 95.84 kB / 0.5283 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.4957, allocations: 0 / 0.5283 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-05/0.4958, allocations: 29.69 kB / 0.5284 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.4958, allocations: 4 kB / 0.5284 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4958, allocations: 4.062 kB / 0.5284 GB, free: 2.938 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002852/0.4987, allocations: 1.322 MB / 0.5297 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.4998, allocations: 498.3 kB / 0.5301 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003142/0.5001, allocations: 15.98 kB / 0.5302 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006999/0.5008, allocations: 23.97 kB / 0.5302 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.5009, allocations: 68 kB / 0.5302 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.501, allocations: 36 kB / 0.5303 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002861/0.5039, allocations: 1.907 MB / 0.5321 GB, free: 15.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5039, allocations: 0 / 0.5321 GB, free: 15.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001696/0.5056, allocations: 0.5852 MB / 0.5327 GB, free: 14.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.004128/0.5097, allocations: 2.557 MB / 0.5352 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.5115, allocations: 0.771 MB / 0.536 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5115, allocations: 8.375 kB / 0.536 GB, free: 11.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.5123, allocations: 419 kB / 0.5364 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002986/0.5153, allocations: 0.6013 MB / 0.537 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02696/0.5422, allocations: 16.45 MB / 0.553 GB, free: 9.043 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.5436, allocations: 1.657 MB / 0.5546 GB, free: 7.359 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.5447, allocations: 361.1 kB / 0.555 GB, free: 7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.5461, allocations: 1.21 MB / 0.5562 GB, free: 5.789 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5461, allocations: 3.938 kB / 0.5562 GB, free: 5.785 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/0.6657, allocations: 61.06 MB / 0.6158 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/16.28, allocations: 7.844 kB / 0.6158 GB, free: 9.031 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.957031865022145]