Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001305/0.001305, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001355/0.001355, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.426/1.426, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 47.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2445, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.03392/0.2784, allocations: 22.24 MB / 444.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03063/0.309, allocations: 19.51 MB / 464.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00405/0.3131, allocations: 269.1 kB / 464.6 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004971/0.3181, allocations: 1.68 MB / 466.3 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.3291, allocations: 3.306 MB / 469.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00553/0.3346, allocations: 1.609 MB / 471.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01952/0.3541, allocations: 12.74 MB / 483.9 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.3553, allocations: 0.4964 MB / 484.4 MB, free: 292 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.3586, allocations: 2.209 MB / 486.6 MB, free: 14.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003008/0.3616, allocations: 2.021 MB / 488.6 MB, free: 12.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005174/0.3622, allocations: 136 kB / 488.8 MB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004421/0.3666, allocations: 1.249 MB / 490 MB, free: 10.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006823/0.3673, allocations: 0.6049 MB / 490.6 MB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002459/0.3697, allocations: 1.921 MB / 492.5 MB, free: 8.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008736/0.3785, allocations: 6.738 MB / 499.3 MB, free: 1.336 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3785, allocations: 0 / 499.3 MB, free: 1.336 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3785, allocations: 3.938 kB / 499.3 MB, free: 1.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000137/0.3786, allocations: 4 kB / 499.3 MB, free: 1.328 MB / 398.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.01037/0.389, allocations: 6.848 MB / 0.4943 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.389, allocations: 16.02 kB / 0.4943 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/0.3892, allocations: 153.2 kB / 0.4944 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009558/0.3902, allocations: 0.7881 MB / 0.4952 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007651/0.3978, allocations: 4.367 MB / 0.4995 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.3979, allocations: 66 kB / 0.4995 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/0.3982, allocations: 103.9 kB / 0.4996 GB, free: 4.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.4005, allocations: 1.313 MB / 0.5009 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.4005, allocations: 0 / 0.5009 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.4006, allocations: 40 kB / 0.501 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-05/0.4007, allocations: 39.97 kB / 0.501 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.4032, allocations: 1.476 MB / 0.5024 GB, free: 1.887 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009967/0.4132, allocations: 5.293 MB / 0.5076 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.415, allocations: 0.8795 MB / 0.5085 GB, free: 11.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.4167, allocations: 1.063 MB / 0.5095 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2279/0.6446, allocations: 26.98 MB / 0.5359 GB, free: 112.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.6457, allocations: 0.5571 MB / 0.5364 GB, free: 112.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.467e-06/0.6457, allocations: 1.438 kB / 0.5364 GB, free: 112.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003332/0.649, allocations: 1.908 MB / 0.5383 GB, free: 112.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.6491, allocations: 66.05 kB / 0.5383 GB, free: 112.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005787/0.6548, allocations: 5.632 MB / 0.5438 GB, free: 110.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.655, allocations: 44.61 kB / 0.5439 GB, free: 110.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/0.6566, allocations: 2.963 MB / 0.5468 GB, free: 108 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.6569, allocations: 314.9 kB / 0.5471 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003936/0.6573, allocations: 427.8 kB / 0.5475 GB, free: 107.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.359e-05/0.6573, allocations: 304.9 kB / 0.5478 GB, free: 107.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007231/0.658, allocations: 410.2 kB / 0.5481 GB, free: 106.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008825/0.6589, allocations: 1.093 MB / 0.5492 GB, free: 105.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.6606, allocations: 1.602 MB / 0.5508 GB, free: 103.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-06/0.6606, allocations: 8 kB / 0.5508 GB, free: 103.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002832/0.6634, allocations: 2.241 MB / 0.553 GB, free: 101.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.6634, allocations: 16 kB / 0.553 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/0.6636, allocations: 156 kB / 0.5531 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.6636, allocations: 39.47 kB / 0.5532 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.6647, allocations: 363.3 kB / 0.5535 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.527e-05/0.6647, allocations: 47.84 kB / 0.5536 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.6664, allocations: 190.5 kB / 0.5538 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.6665, allocations: 127.9 kB / 0.5539 GB, free: 100.3 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.001052/0.6676, allocations: 0.7168 MB / 0.5546 GB, free: 99.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004901/0.6681, allocations: 0.7492 MB / 0.5553 GB, free: 98.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/0.6716, allocations: 2.159 MB / 0.5574 GB, free: 96.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.6716, allocations: 8 kB / 0.5574 GB, free: 96.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6716, allocations: 0 / 0.5574 GB, free: 96.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.6716, allocations: 3.984 kB / 0.5574 GB, free: 96.83 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00472/0.6763, allocations: 3.498 MB / 0.5608 GB, free: 93.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001541/0.6765, allocations: 136 kB / 0.561 GB, free: 93.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007305/0.6772, allocations: 155.8 kB / 0.5611 GB, free: 93.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.6772, allocations: 3.516 kB / 0.5611 GB, free: 93.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.698e-05/0.6773, allocations: 63.98 kB / 0.5612 GB, free: 92.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.6773, allocations: 7.938 kB / 0.5612 GB, free: 92.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6773, allocations: 0 / 0.5612 GB, free: 92.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.6801, allocations: 2.186 MB / 0.5633 GB, free: 90.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.6813, allocations: 0.7821 MB / 0.5641 GB, free: 89.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005219/0.6818, allocations: 16.88 kB / 0.5641 GB, free: 89.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.683, allocations: 39.91 kB / 0.5641 GB, free: 89.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.6832, allocations: 104.5 kB / 0.5642 GB, free: 89.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6833, allocations: 68 kB / 0.5643 GB, free: 89.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003886/0.6871, allocations: 3.608 MB / 0.5678 GB, free: 86.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6871, allocations: 4 kB / 0.5678 GB, free: 86.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001907/0.689, allocations: 1.082 MB / 0.5689 GB, free: 85.14 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.004027/0.6931, allocations: 3.843 MB / 0.5726 GB, free: 81.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.695, allocations: 1.366 MB / 0.574 GB, free: 79.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.695, allocations: 0 / 0.574 GB, free: 79.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008771/0.6959, allocations: 0.732 MB / 0.5747 GB, free: 79.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004283/0.7002, allocations: 1.179 MB / 0.5758 GB, free: 78.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03477/0.735, allocations: 30.54 MB / 0.6057 GB, free: 46.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.7364, allocations: 2.102 MB / 0.6077 GB, free: 44.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002102/0.7385, allocations: 0.6846 MB / 0.6084 GB, free: 43.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/0.7403, allocations: 2.397 MB / 0.6107 GB, free: 41.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.243e-06/0.7403, allocations: 0 / 0.6107 GB, free: 41.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1878/0.9281, allocations: 117 MB / 0.725 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.06/23.99, allocations: 1.969 kB / 0.725 GB, free: 5.238 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.781929318327457]