Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001312/0.001312, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001464/0.001464, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 55.92 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2735, allocations: 49.17 MB / 396.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02483/0.2983, allocations: 25.45 MB / 421.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03205/0.3304, allocations: 21.4 MB / 443.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006787/0.3371, allocations: 273 kB / 443.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006121/0.3433, allocations: 1.745 MB / 445.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01517/0.3584, allocations: 3.27 MB / 448.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007471/0.3659, allocations: 1.593 MB / 450.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02295/0.3889, allocations: 12.47 MB / 462.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001564/0.3904, allocations: 0.5122 MB / 463.1 MB, free: 376 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003739/0.3942, allocations: 2.003 MB / 465.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00382/0.398, allocations: 2.057 MB / 467.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005167/0.3985, allocations: 132 kB / 467.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0054/0.4039, allocations: 1.222 MB / 468.5 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.4049, allocations: 0.601 MB / 469.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004342/0.4093, allocations: 2.639 MB / 471.7 MB, free: 7.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.4219, allocations: 6.718 MB / 478.4 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4219, allocations: 0 / 478.4 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4219, allocations: 0 / 478.4 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002496/0.4221, allocations: 0 / 478.4 MB, free: 0.9219 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01171/0.4338, allocations: 6.894 MB / 485.3 MB, free: 9.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.4339, allocations: 15.98 kB / 485.3 MB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002419/0.4341, allocations: 161.1 kB / 485.5 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.4353, allocations: 0.7841 MB / 486.3 MB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008161/0.4435, allocations: 4.411 MB / 490.7 MB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.678e-05/0.4435, allocations: 66 kB / 490.8 MB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/0.4438, allocations: 104 kB / 490.9 MB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.4461, allocations: 1.305 MB / 492.2 MB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.4461, allocations: 3.938 kB / 492.2 MB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.4463, allocations: 39.94 kB / 492.2 MB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.166e-05/0.4463, allocations: 39.97 kB / 492.2 MB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.4489, allocations: 1.5 MB / 493.7 MB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.4596, allocations: 5.579 MB / 499.3 MB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4613, allocations: 0.8757 MB / 0.4885 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.4629, allocations: 1.063 MB / 0.4895 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05088/0.5137, allocations: 27.21 MB / 0.5161 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.5148, allocations: 0.5645 MB / 0.5166 GB, free: 13.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.885e-06/0.5148, allocations: 0 / 0.5166 GB, free: 13.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003669/0.5185, allocations: 1.911 MB / 0.5185 GB, free: 11.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.5186, allocations: 68.05 kB / 0.5186 GB, free: 11.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007909/0.5265, allocations: 5.628 MB / 0.5241 GB, free: 5.625 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/0.5267, allocations: 49.69 kB / 0.5241 GB, free: 5.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002856/0.5295, allocations: 2.957 MB / 0.527 GB, free: 2.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/0.53, allocations: 313.4 kB / 0.5273 GB, free: 2.293 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005693/0.5305, allocations: 423 kB / 0.5277 GB, free: 1.875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.5307, allocations: 301.1 kB / 0.528 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008882/0.5315, allocations: 403.8 kB / 0.5284 GB, free: 1.184 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.533, allocations: 1.099 MB / 0.5294 GB, free: 15.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/0.5354, allocations: 1.607 MB / 0.531 GB, free: 13.81 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.5354, allocations: 11.98 kB / 0.531 GB, free: 13.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004096/0.5395, allocations: 2.241 MB / 0.5332 GB, free: 11.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.5396, allocations: 16 kB / 0.5332 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/0.5398, allocations: 160 kB / 0.5334 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.387e-05/0.5399, allocations: 40.77 kB / 0.5334 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.5411, allocations: 359.4 kB / 0.5338 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-05/0.5411, allocations: 43.86 kB / 0.5338 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.5431, allocations: 194.6 kB / 0.534 GB, free: 10.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.5433, allocations: 128 kB / 0.5341 GB, free: 10.63 MB / 462.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.001444/0.5447, allocations: 0.7197 MB / 0.5348 GB, free: 9.898 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009605/0.5457, allocations: 0.757 MB / 0.5356 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004635/0.5503, allocations: 2.167 MB / 0.5377 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.5503, allocations: 11.98 kB / 0.5377 GB, free: 6.945 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.5503, allocations: 0 / 0.5377 GB, free: 6.945 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.5503, allocations: 3.938 kB / 0.5377 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.5566, allocations: 3.6 MB / 0.5412 GB, free: 3.277 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002067/0.5568, allocations: 140 kB / 0.5413 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.5576, allocations: 159.8 kB / 0.5415 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.396e-05/0.5576, allocations: 4 kB / 0.5415 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.831e-05/0.5577, allocations: 59.92 kB / 0.5415 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.5577, allocations: 8.062 kB / 0.5416 GB, free: 2.914 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.5577, allocations: 3.938 kB / 0.5416 GB, free: 2.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003653/0.5613, allocations: 2.194 MB / 0.5437 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/0.563, allocations: 0.7822 MB / 0.5445 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005498/0.5636, allocations: 19.94 kB / 0.5445 GB, free: 15.87 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.5646, allocations: 35.97 kB / 0.5445 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.5649, allocations: 108.5 kB / 0.5446 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.565, allocations: 67.98 kB / 0.5447 GB, free: 15.66 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005192/0.5702, allocations: 3.629 MB / 0.5482 GB, free: 12.06 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5702, allocations: 0 / 0.5482 GB, free: 12.06 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002506/0.5727, allocations: 1.1 MB / 0.5493 GB, free: 10.96 MB / 478.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.00581/0.5785, allocations: 3.865 MB / 0.5531 GB, free: 7.055 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002725/0.5812, allocations: 1.37 MB / 0.5544 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.5812, allocations: 0 / 0.5544 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.5824, allocations: 0.74 MB / 0.5551 GB, free: 4.855 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/0.5862, allocations: 0.9802 MB / 0.5561 GB, free: 3.871 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2731/0.8593, allocations: 30.75 MB / 0.5861 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.8607, allocations: 2.607 MB / 0.5887 GB, free: 137.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001714/0.8624, allocations: 0.6895 MB / 0.5893 GB, free: 136.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00163/0.8641, allocations: 2.409 MB / 0.5917 GB, free: 134.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8641, allocations: 0 / 0.5917 GB, free: 134.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.163/1.027, allocations: 113.2 MB / 0.7022 GB, free: 21.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.89/29.92, allocations: 12.86 kB / 0.7022 GB, free: 21.1 MB / 478.1 MB " [Timeout remaining time 630] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.55230256100185]