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.001501/0.001501, allocations: 107.6 kB / 21.18 MB, free: 0.5781 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.001569/0.001569, allocations: 216 kB / 24.48 MB, free: 3.867 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.384/1.384, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.001821/0.001821, allocations: 50.75 kB / 347.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2501, allocations: 49.16 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01958/0.2697, allocations: 21.08 MB / 417.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02957/0.2992, allocations: 18.66 MB / 436.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006488/0.3057, allocations: 273 kB / 436.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006168/0.3119, allocations: 1.63 MB / 438 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01355/0.3254, allocations: 3.251 MB / 441.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006467/0.3319, allocations: 1.546 MB / 442.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02086/0.3528, allocations: 12.47 MB / 455.2 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.3541, allocations: 0.4927 MB / 455.7 MB, free: 7.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003183/0.3573, allocations: 2.006 MB / 457.7 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003098/0.3604, allocations: 1.967 MB / 459.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004986/0.3609, allocations: 132 kB / 459.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.3649, allocations: 1.152 MB / 461 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006592/0.3655, allocations: 0.5971 MB / 461.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002595/0.3681, allocations: 1.948 MB / 463.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009971/0.3781, allocations: 6.78 MB / 470.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3781, allocations: 0 / 470.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3781, allocations: 4 kB / 470.3 MB, free: 8.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000165/0.3783, allocations: 0 / 470.3 MB, free: 8.844 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.01173/0.39, allocations: 6.902 MB / 477.2 MB, free: 1.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3901, allocations: 15.98 kB / 477.2 MB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002189/0.3903, allocations: 157.2 kB / 477.4 MB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.3914, allocations: 0.7919 MB / 478.2 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008093/0.3995, allocations: 4.399 MB / 482.6 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.858e-05/0.3996, allocations: 66 kB / 482.7 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.3998, allocations: 103.9 kB / 482.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.4022, allocations: 1.309 MB / 484.1 MB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.4022, allocations: 4 kB / 484.1 MB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.4024, allocations: 39.94 kB / 484.1 MB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.4024, allocations: 35.97 kB / 484.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/0.405, allocations: 1.488 MB / 485.6 MB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.4152, allocations: 5.31 MB / 490.9 MB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.4169, allocations: 0.864 MB / 491.8 MB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/0.4186, allocations: 1.071 MB / 492.9 MB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05252/0.4711, allocations: 27.12 MB / 0.5078 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.4723, allocations: 0.5645 MB / 0.5084 GB, free: 5.516 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.026e-06/0.4723, allocations: 0 / 0.5084 GB, free: 5.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003663/0.4759, allocations: 1.915 MB / 0.5102 GB, free: 3.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.476, allocations: 64.05 kB / 0.5103 GB, free: 3.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007563/0.4836, allocations: 5.674 MB / 0.5158 GB, free: 13.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.4837, allocations: 37.7 kB / 0.5159 GB, free: 13.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002853/0.4865, allocations: 2.957 MB / 0.5188 GB, free: 10.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.4869, allocations: 309.5 kB / 0.519 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000571/0.4875, allocations: 431 kB / 0.5195 GB, free: 10.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4876, allocations: 301.1 kB / 0.5197 GB, free: 9.832 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009031/0.4885, allocations: 407.8 kB / 0.5201 GB, free: 9.434 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.49, allocations: 1.087 MB / 0.5212 GB, free: 8.016 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002444/0.4924, allocations: 1.619 MB / 0.5228 GB, free: 6.066 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.4924, allocations: 8 kB / 0.5228 GB, free: 6.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004024/0.4964, allocations: 2.246 MB / 0.525 GB, free: 3.801 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.4965, allocations: 16 kB / 0.525 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002307/0.4967, allocations: 164 kB / 0.5251 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.387e-05/0.4967, allocations: 32 kB / 0.5252 GB, free: 3.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.4979, allocations: 359.4 kB / 0.5255 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.753e-05/0.498, allocations: 47.8 kB / 0.5256 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.4999, allocations: 198.6 kB / 0.5258 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001965/0.5001, allocations: 124 kB / 0.5259 GB, free: 2.879 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.001552/0.5017, allocations: 0.7159 MB / 0.5266 GB, free: 2.152 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009758/0.5026, allocations: 0.757 MB / 0.5273 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/0.5072, allocations: 2.163 MB / 0.5294 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.5072, allocations: 15.98 kB / 0.5294 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.5072, allocations: 0 / 0.5294 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.5072, allocations: 3.938 kB / 0.5294 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006332/0.5136, allocations: 3.514 MB / 0.5329 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000205/0.5138, allocations: 140 kB / 0.533 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.5145, allocations: 151.8 kB / 0.5332 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.5145, allocations: 0 / 0.5332 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.5146, allocations: 71.98 kB / 0.5332 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.5146, allocations: 4 kB / 0.5332 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5146, allocations: 0 / 0.5332 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003761/0.5184, allocations: 2.202 MB / 0.5354 GB, free: 9.031 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/0.5203, allocations: 0.7859 MB / 0.5361 GB, free: 8.234 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000734/0.521, allocations: 15.94 kB / 0.5362 GB, free: 8.219 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.5223, allocations: 35.97 kB / 0.5362 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.5225, allocations: 96.55 kB / 0.5363 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.5227, allocations: 71.98 kB / 0.5364 GB, free: 8.016 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006005/0.5287, allocations: 3.637 MB / 0.5399 GB, free: 4.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5287, allocations: 0 / 0.5399 GB, free: 4.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002522/0.5312, allocations: 1.092 MB / 0.541 GB, free: 3.316 MB / 462.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.005844/0.5371, allocations: 3.866 MB / 0.5447 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002605/0.5397, allocations: 1.366 MB / 0.5461 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.5397, allocations: 4 kB / 0.5461 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.5408, allocations: 0.7361 MB / 0.5468 GB, free: 13.21 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003929/0.5448, allocations: 0.9841 MB / 0.5478 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/0.7634, allocations: 30.72 MB / 0.5778 GB, free: 143.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/0.7649, allocations: 2.115 MB / 0.5798 GB, free: 142.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001725/0.7666, allocations: 0.6872 MB / 0.5805 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001721/0.7684, allocations: 2.411 MB / 0.5829 GB, free: 140.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.382e-06/0.7684, allocations: 0 / 0.5829 GB, free: 140.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2494/1.018, allocations: 117.8 MB / 0.6979 GB, free: 23.45 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.86/24.88, allocations: 12.05 kB / 0.6979 GB, free: 23.44 MB / 478.1 MB " [Timeout remaining time 635] (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: 27.553070910740644]