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.0008424/0.0008424, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008025/0.0008025, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9011/0.9011, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 3.126e-06/3.126e-06, allocations: 4 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.477e-05/1.789e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0136/0.01362, allocations: 22.22 MB / 340.6 MB, free: 28 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01912/0.03274, allocations: 19.53 MB / 360.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003102/0.03584, allocations: 265.1 kB / 360.4 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003072/0.03891, allocations: 1.695 MB / 362.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006993/0.04591, allocations: 3.426 MB / 365.6 MB, free: 7 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003576/0.04948, allocations: 1.624 MB / 367.2 MB, free: 5.367 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01221/0.06169, allocations: 13.08 MB / 380.3 MB, free: 8.246 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009305/0.06262, allocations: 0.4887 MB / 380.7 MB, free: 7.723 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002854/0.06547, allocations: 2.992 MB / 383.7 MB, free: 4.723 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.06662, allocations: 1.498 MB / 385.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.06679, allocations: 136 kB / 385.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00246/0.06925, allocations: 1.264 MB / 386.6 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.06956, allocations: 0.6009 MB / 387.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.07066, allocations: 1.41 MB / 388.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004665/0.07532, allocations: 6.499 MB / 395.1 MB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.07533, allocations: 7.938 kB / 395.2 MB, free: 9.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.07533, allocations: 0 / 395.2 MB, free: 9.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.772e-05/0.07539, allocations: 0 / 395.2 MB, free: 9.27 MB / 362.7 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.005517/0.08091, allocations: 6.78 MB / 401.9 MB, free: 2.414 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.08096, allocations: 8.922 kB / 401.9 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.08111, allocations: 157.2 kB / 402.1 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000543/0.08166, allocations: 0.7803 MB / 402.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004153/0.08581, allocations: 4.379 MB / 407.3 MB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.08585, allocations: 70 kB / 407.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.086, allocations: 107.9 kB / 407.4 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.08742, allocations: 1.305 MB / 408.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.08743, allocations: 3.938 kB / 408.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.213e-05/0.08752, allocations: 35.98 kB / 408.8 MB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.08754, allocations: 39.98 kB / 408.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.08911, allocations: 1.488 MB / 410.3 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0058/0.09491, allocations: 5.279 MB / 415.6 MB, free: 4.543 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.09591, allocations: 0.8796 MB / 416.5 MB, free: 3.648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009865/0.09689, allocations: 1.068 MB / 417.5 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02909/0.126, allocations: 26.99 MB / 444.5 MB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006602/0.1266, allocations: 0.5489 MB / 445.1 MB, free: 6.289 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 2.585e-06/0.1266, allocations: 0 / 445.1 MB, free: 6.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.002133/0.1288, allocations: 1.915 MB / 447 MB, free: 4.363 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.1288, allocations: 64 kB / 447 MB, free: 4.289 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1517/0.2805, allocations: 5.625 MB / 452.7 MB, free: 123.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.2806, allocations: 42.2 kB / 452.7 MB, free: 123 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/0.282, allocations: 2.964 MB / 455.7 MB, free: 121.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.2821, allocations: 304.2 kB / 456 MB, free: 121.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.2825, allocations: 419 kB / 456.4 MB, free: 121 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.379e-05/0.2825, allocations: 304.6 kB / 456.7 MB, free: 120.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/0.283, allocations: 402.2 kB / 457.1 MB, free: 120.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005996/0.2836, allocations: 1.091 MB / 458.2 MB, free: 119.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.2848, allocations: 1.611 MB / 459.8 MB, free: 118.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.2848, allocations: 7.469 kB / 459.8 MB, free: 118.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001694/0.2865, allocations: 2.244 MB / 462 MB, free: 117.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2865, allocations: 14.09 kB / 462 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.354e-05/0.2866, allocations: 163.7 kB / 462.2 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.2866, allocations: 31.75 kB / 462.2 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000579/0.2872, allocations: 364.9 kB / 462.6 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.2872, allocations: 50.45 kB / 462.6 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000854/0.2881, allocations: 190.5 kB / 462.8 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.2882, allocations: 121.4 kB / 462.9 MB, free: 117.2 MB / 410.7 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.0008166/0.289, allocations: 0.7183 MB / 463.6 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003312/0.2893, allocations: 0.749 MB / 464.4 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002261/0.2916, allocations: 2.149 MB / 466.5 MB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2916, allocations: 8 kB / 466.6 MB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.2916, allocations: 6.594 kB / 466.6 MB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2916, allocations: 2.016 kB / 466.6 MB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.2945, allocations: 3.495 MB / 470.1 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.683e-05/0.2946, allocations: 140.1 kB / 470.2 MB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.295, allocations: 151.8 kB / 470.3 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.295, allocations: 4 kB / 470.3 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.151e-05/0.295, allocations: 63.42 kB / 470.4 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.295, allocations: 4 kB / 470.4 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.295, allocations: 3.938 kB / 470.4 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.2967, allocations: 2.184 MB / 472.6 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006614/0.2973, allocations: 0.7875 MB / 473.4 MB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/0.2976, allocations: 15.98 kB / 473.4 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006019/0.2982, allocations: 31.97 kB / 473.4 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.2983, allocations: 100.5 kB / 473.5 MB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.188e-05/0.2984, allocations: 68 kB / 473.6 MB, free: 107.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002431/0.3008, allocations: 3.612 MB / 477.2 MB, free: 104.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3008, allocations: 3.938 kB / 477.2 MB, free: 104.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001199/0.302, allocations: 1.079 MB / 478.3 MB, free: 103 MB / 410.7 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.002577/0.3046, allocations: 3.942 MB / 482.2 MB, free: 99.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.3058, allocations: 1.362 MB / 483.6 MB, free: 97.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3058, allocations: 3.938 kB / 483.6 MB, free: 97.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005158/0.3063, allocations: 0.7359 MB / 484.3 MB, free: 97.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.3086, allocations: 1.17 MB / 485.5 MB, free: 95.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/0.3336, allocations: 30.43 MB / 0.5038 GB, free: 64.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009213/0.3345, allocations: 2.098 MB / 0.5059 GB, free: 62.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001224/0.3358, allocations: 0.6846 MB / 0.5066 GB, free: 61.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.3368, allocations: 2.398 MB / 0.5089 GB, free: 59.52 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3369, allocations: 0 / 0.5089 GB, free: 59.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2473/0.5841, allocations: 116.9 MB / 0.623 GB, free: 148.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.13, allocations: 9.406 kB / 0.623 GB, free: 148.8 MB / 458.7 MB " [Timeout remaining time 646] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/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: 16.059707129374146]