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.001966/0.001966, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.002236/0.002236, allocations: 209.9 kB / 23.73 MB, free: 4.406 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.459/1.459, 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.001701/0.001701, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2232, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0249/0.2481, allocations: 22.24 MB / 453.3 MB, free: 320 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0287/0.2768, allocations: 19.55 MB / 472.9 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004396/0.2812, allocations: 265.1 kB / 473.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004597/0.2858, allocations: 1.688 MB / 474.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.2961, allocations: 3.314 MB / 478.1 MB, free: 7.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004843/0.301, allocations: 1.593 MB / 479.7 MB, free: 5.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01918/0.3202, allocations: 12.9 MB / 492.6 MB, free: 8.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.3212, allocations: 0.4886 MB / 493.1 MB, free: 8.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003163/0.3244, allocations: 2.213 MB / 495.3 MB, free: 6.105 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.3273, allocations: 2.014 MB / 497.3 MB, free: 4.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004165/0.3277, allocations: 132 kB / 497.5 MB, free: 3.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.3313, allocations: 1.261 MB / 498.7 MB, free: 2.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006129/0.3319, allocations: 0.6049 MB / 499.3 MB, free: 2.078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002211/0.3341, allocations: 1.925 MB / 0.4895 GB, free: 144 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008312/0.3424, allocations: 6.742 MB / 0.4961 GB, free: 9.367 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3424, allocations: 0 / 0.4961 GB, free: 9.367 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3424, allocations: 0 / 0.4961 GB, free: 9.367 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001784/0.3426, allocations: 0 / 0.4961 GB, free: 9.367 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.01076/0.3534, allocations: 6.859 MB / 0.5028 GB, free: 2.426 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3534, allocations: 12.03 kB / 0.5028 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/0.3536, allocations: 161.2 kB / 0.503 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000889/0.3545, allocations: 0.7764 MB / 0.5037 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007564/0.3621, allocations: 4.375 MB / 0.508 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.228e-05/0.3622, allocations: 66 kB / 0.5081 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.3624, allocations: 103.7 kB / 0.5082 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.3648, allocations: 1.305 MB / 0.5094 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.3648, allocations: 4 kB / 0.5094 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.3649, allocations: 36 kB / 0.5095 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.005e-05/0.3649, allocations: 39.97 kB / 0.5095 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.3676, allocations: 1.48 MB / 0.5109 GB, free: 9.918 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.3778, allocations: 5.293 MB / 0.5161 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.3796, allocations: 0.8679 MB / 0.517 GB, free: 3.668 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.3812, allocations: 1.063 MB / 0.518 GB, free: 2.605 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2309/0.6122, allocations: 27.06 MB / 0.5444 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008372/0.613, allocations: 0.5613 MB / 0.545 GB, free: 102.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.945e-06/0.613, allocations: 0 / 0.545 GB, free: 102.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002614/0.6156, allocations: 1.91 MB / 0.5468 GB, free: 101.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.6157, allocations: 67.11 kB / 0.5469 GB, free: 101.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004896/0.6205, allocations: 5.626 MB / 0.5524 GB, free: 96.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.892e-05/0.6206, allocations: 44.41 kB / 0.5524 GB, free: 96.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.6223, allocations: 2.958 MB / 0.5553 GB, free: 93.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.6225, allocations: 321.6 kB / 0.5556 GB, free: 93.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/0.6229, allocations: 431 kB / 0.5561 GB, free: 92.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.94e-05/0.6229, allocations: 303.2 kB / 0.5563 GB, free: 92.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.6236, allocations: 405.8 kB / 0.5567 GB, free: 92.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00089/0.6245, allocations: 1.089 MB / 0.5578 GB, free: 90.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.6262, allocations: 1.608 MB / 0.5594 GB, free: 88.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.6262, allocations: 8 kB / 0.5594 GB, free: 88.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002759/0.6289, allocations: 2.243 MB / 0.5616 GB, free: 86.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.629, allocations: 12 kB / 0.5616 GB, free: 86.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/0.6291, allocations: 164 kB / 0.5617 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.201e-05/0.6292, allocations: 32.5 kB / 0.5618 GB, free: 86.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.6302, allocations: 365.7 kB / 0.5621 GB, free: 86.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.621e-05/0.6302, allocations: 47.8 kB / 0.5622 GB, free: 85.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.6319, allocations: 191.3 kB / 0.5623 GB, free: 85.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.632, allocations: 125.6 kB / 0.5625 GB, free: 85.7 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.001044/0.6331, allocations: 0.7121 MB / 0.5632 GB, free: 84.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.6335, allocations: 0.753 MB / 0.5639 GB, free: 84.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.637, allocations: 2.155 MB / 0.566 GB, free: 82.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.637, allocations: 8 kB / 0.566 GB, free: 82.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.637, allocations: 0 / 0.566 GB, free: 82.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.6371, allocations: 6.984 kB / 0.566 GB, free: 82.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004502/0.6416, allocations: 3.494 MB / 0.5694 GB, free: 78.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001504/0.6417, allocations: 140 kB / 0.5696 GB, free: 78.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007259/0.6424, allocations: 151.9 kB / 0.5697 GB, free: 78.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.6424, allocations: 4 kB / 0.5697 GB, free: 78.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.649e-05/0.6425, allocations: 60 kB / 0.5698 GB, free: 78.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.6425, allocations: 4 kB / 0.5698 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.6425, allocations: 3.984 kB / 0.5698 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.6452, allocations: 2.194 MB / 0.5719 GB, free: 76.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.6466, allocations: 0.7773 MB / 0.5727 GB, free: 75.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005513/0.6471, allocations: 12 kB / 0.5727 GB, free: 75.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6483, allocations: 43.95 kB / 0.5727 GB, free: 75.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.6485, allocations: 95 kB / 0.5728 GB, free: 75.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.983e-05/0.6486, allocations: 71.98 kB / 0.5729 GB, free: 75.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003607/0.6522, allocations: 3.604 MB / 0.5764 GB, free: 71.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6522, allocations: 0 / 0.5764 GB, free: 71.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001892/0.6541, allocations: 1.084 MB / 0.5775 GB, free: 70.48 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.004021/0.6581, allocations: 3.854 MB / 0.5812 GB, free: 66.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001958/0.66, allocations: 1.366 MB / 0.5826 GB, free: 65.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.66, allocations: 0 / 0.5826 GB, free: 65.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009177/0.661, allocations: 0.7397 MB / 0.5833 GB, free: 64.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004205/0.6652, allocations: 1.175 MB / 0.5844 GB, free: 63.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03665/0.7018, allocations: 30.53 MB / 0.6142 GB, free: 31.99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.7031, allocations: 2.109 MB / 0.6163 GB, free: 29.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001742/0.7049, allocations: 0.6846 MB / 0.617 GB, free: 29.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/0.7065, allocations: 2.397 MB / 0.6193 GB, free: 26.76 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.7065, allocations: 0 / 0.6193 GB, free: 26.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1921/0.8986, allocations: 117.1 MB / 0.7337 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.81/23.71, allocations: 10.5 kB / 0.7337 GB, free: 6.484 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: 26.61976325372234]