Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001316/0.001316, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001411/0.001411, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002386, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2508, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02475/0.2756, allocations: 22.23 MB / 453.3 MB, free: 332 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02872/0.3043, allocations: 19.55 MB / 472.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004558/0.3089, allocations: 269.1 kB / 473.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005161/0.314, allocations: 1.688 MB / 474.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.3249, allocations: 3.302 MB / 478.1 MB, free: 7.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005411/0.3304, allocations: 1.605 MB / 479.7 MB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02151/0.3519, allocations: 12.91 MB / 492.6 MB, free: 8.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.3532, allocations: 0.5082 MB / 493.1 MB, free: 8.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003519/0.3567, allocations: 2.217 MB / 495.3 MB, free: 6.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003629/0.3604, allocations: 2.107 MB / 497.5 MB, free: 3.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006531/0.361, allocations: 132 kB / 497.6 MB, free: 3.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004279/0.3653, allocations: 1.284 MB / 498.9 MB, free: 2.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007601/0.3661, allocations: 0.6049 MB / 499.5 MB, free: 1.941 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002903/0.369, allocations: 1.925 MB / 0.4896 GB, free: 4 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.379, allocations: 6.742 MB / 0.4962 GB, free: 9.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.379, allocations: 0 / 0.4962 GB, free: 9.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.379, allocations: 3.938 kB / 0.4962 GB, free: 9.227 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002059/0.3792, allocations: 0 / 0.4962 GB, free: 9.227 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01199/0.3912, allocations: 6.851 MB / 0.5029 GB, free: 2.293 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.3912, allocations: 12.03 kB / 0.5029 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002386/0.3915, allocations: 161.2 kB / 0.5031 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.3926, allocations: 0.7764 MB / 0.5038 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008506/0.4011, allocations: 4.375 MB / 0.5081 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.491e-05/0.4011, allocations: 66 kB / 0.5082 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.4014, allocations: 103.8 kB / 0.5083 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.4039, allocations: 1.309 MB / 0.5096 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.4039, allocations: 0 / 0.5096 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.4041, allocations: 40 kB / 0.5096 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.4041, allocations: 39.97 kB / 0.5096 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002672/0.4068, allocations: 1.484 MB / 0.5111 GB, free: 9.777 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.4181, allocations: 5.286 MB / 0.5162 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.4199, allocations: 0.8796 MB / 0.5171 GB, free: 3.527 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.4216, allocations: 1.067 MB / 0.5181 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2446/0.6662, allocations: 27.06 MB / 0.5446 GB, free: 102.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008744/0.6671, allocations: 0.5611 MB / 0.5451 GB, free: 102.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.396e-06/0.6671, allocations: 0 / 0.5451 GB, free: 102.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002834/0.6699, allocations: 1.909 MB / 0.547 GB, free: 101.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.67, allocations: 66.44 kB / 0.5471 GB, free: 101.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005415/0.6754, allocations: 5.623 MB / 0.5525 GB, free: 96.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.6755, allocations: 41.7 kB / 0.5526 GB, free: 96.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.6772, allocations: 2.966 MB / 0.5555 GB, free: 93.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.6775, allocations: 319.4 kB / 0.5558 GB, free: 92.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004334/0.6779, allocations: 427 kB / 0.5562 GB, free: 92.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.6779, allocations: 304.9 kB / 0.5565 GB, free: 92.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007485/0.6787, allocations: 399.8 kB / 0.5569 GB, free: 91.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000927/0.6796, allocations: 1.094 MB / 0.5579 GB, free: 90.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.6815, allocations: 1.614 MB / 0.5595 GB, free: 88.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/0.6815, allocations: 4 kB / 0.5595 GB, free: 88.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003178/0.6847, allocations: 2.234 MB / 0.5617 GB, free: 86.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.6847, allocations: 19.94 kB / 0.5617 GB, free: 86.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/0.6849, allocations: 165 kB / 0.5619 GB, free: 86.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.153e-05/0.6849, allocations: 32 kB / 0.5619 GB, free: 86.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.686, allocations: 354.9 kB / 0.5622 GB, free: 85.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.46e-05/0.6861, allocations: 51.8 kB / 0.5623 GB, free: 85.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002093/0.6882, allocations: 192.4 kB / 0.5625 GB, free: 85.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/0.6883, allocations: 127.7 kB / 0.5626 GB, free: 85.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001263/0.6896, allocations: 0.7058 MB / 0.5633 GB, free: 84.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007927/0.6904, allocations: 0.753 MB / 0.564 GB, free: 84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.6944, allocations: 2.161 MB / 0.5661 GB, free: 81.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.6944, allocations: 11.94 kB / 0.5661 GB, free: 81.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.6944, allocations: 0 / 0.5661 GB, free: 81.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.6944, allocations: 3.984 kB / 0.5661 GB, free: 81.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005821/0.7002, allocations: 3.49 MB / 0.5695 GB, free: 78.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001637/0.7004, allocations: 140 kB / 0.5697 GB, free: 78.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/0.7011, allocations: 151.9 kB / 0.5698 GB, free: 78.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.7011, allocations: 4 kB / 0.5698 GB, free: 78.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.65e-05/0.7012, allocations: 56 kB / 0.5699 GB, free: 78.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.7012, allocations: 7.938 kB / 0.5699 GB, free: 78.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7012, allocations: 0 / 0.5699 GB, free: 78.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/0.7042, allocations: 2.197 MB / 0.572 GB, free: 75.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/0.7061, allocations: 0.7783 MB / 0.5728 GB, free: 75.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008606/0.7069, allocations: 12 kB / 0.5728 GB, free: 75.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/0.7084, allocations: 39.95 kB / 0.5728 GB, free: 75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.7086, allocations: 96.56 kB / 0.5729 GB, free: 74.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.7087, allocations: 72.86 kB / 0.573 GB, free: 74.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005283/0.7139, allocations: 3.612 MB / 0.5765 GB, free: 71.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7139, allocations: 0 / 0.5765 GB, free: 71.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00247/0.7164, allocations: 1.082 MB / 0.5776 GB, free: 70.24 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00496/0.7214, allocations: 3.844 MB / 0.5813 GB, free: 66.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.7235, allocations: 1.374 MB / 0.5827 GB, free: 65.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7235, allocations: 0 / 0.5827 GB, free: 65.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009409/0.7245, allocations: 0.7281 MB / 0.5834 GB, free: 64.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006633/0.7311, allocations: 1.179 MB / 0.5846 GB, free: 63.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04204/0.7731, allocations: 30.54 MB / 0.6144 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.7744, allocations: 2.105 MB / 0.6164 GB, free: 29.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001925/0.7764, allocations: 0.6846 MB / 0.6171 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/0.7783, allocations: 2.393 MB / 0.6194 GB, free: 26.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.7783, allocations: 0 / 0.6194 GB, free: 26.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.193/0.9713, allocations: 117.5 MB / 0.7342 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.22/24.19, allocations: 2.391 kB / 0.7342 GB, free: 5.844 MB / 0.5294 GB " [Timeout remaining time 636] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.051035948999925]