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.0008642/0.0008642, allocations: 83.69 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.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.0008552/0.0008552, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8977/0.8977, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.663e-06/1.663e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.356e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01406/0.01408, allocations: 22.26 MB / 346.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.03576, allocations: 19.56 MB / 366.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003653/0.03941, allocations: 265.1 kB / 366.6 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002764/0.04218, allocations: 1.683 MB / 368.3 MB, free: 3.992 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007078/0.04925, allocations: 3.434 MB / 371.8 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003538/0.05279, allocations: 1.62 MB / 373.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01205/0.06484, allocations: 13.24 MB / 386.6 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.0659, allocations: 0.4924 MB / 387.1 MB, free: 1.102 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003393/0.06929, allocations: 2.992 MB / 390.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.07087, allocations: 1.498 MB / 391.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00031/0.07118, allocations: 136 kB / 391.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.07402, allocations: 1.272 MB / 393 MB, free: 11.19 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003096/0.07433, allocations: 0.6009 MB / 393.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.07564, allocations: 1.406 MB / 395 MB, free: 9.176 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00469/0.08033, allocations: 6.499 MB / 401.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.08033, allocations: 7.938 kB / 401.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.08033, allocations: 0 / 401.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.912e-05/0.08039, allocations: 0 / 401.5 MB, free: 2.645 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.005561/0.08595, allocations: 6.784 MB / 408.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.086, allocations: 12.03 kB / 408.3 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00016/0.08616, allocations: 157.2 kB / 408.5 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005007/0.08666, allocations: 0.7803 MB / 409.2 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004254/0.09092, allocations: 4.375 MB / 413.6 MB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.09096, allocations: 66 kB / 413.7 MB, free: 6.262 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.09111, allocations: 107.9 kB / 413.8 MB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.09254, allocations: 1.305 MB / 415.1 MB, free: 4.832 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.09255, allocations: 3.938 kB / 415.1 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.089e-05/0.09263, allocations: 39.98 kB / 415.1 MB, free: 4.789 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.09266, allocations: 35.98 kB / 415.2 MB, free: 4.754 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.0943, allocations: 1.484 MB / 416.7 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.0997, allocations: 5.29 MB / 421.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009828/0.1007, allocations: 0.8681 MB / 422.8 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.1018, allocations: 1.06 MB / 423.9 MB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.1305, allocations: 27.06 MB / 450.9 MB, free: 168 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1575/0.2881, allocations: 0.5645 MB / 451.5 MB, free: 119 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 3.507e-06/0.2881, allocations: 0.5 kB / 451.5 MB, free: 119 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.002814/0.2909, allocations: 1.909 MB / 453.4 MB, free: 118.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.2909, allocations: 67.5 kB / 453.5 MB, free: 118.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.2949, allocations: 5.628 MB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.295, allocations: 36.14 kB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.2961, allocations: 2.961 MB / 462.1 MB, free: 114.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.2962, allocations: 313 kB / 462.4 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/0.2965, allocations: 419 kB / 462.8 MB, free: 113.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.357e-05/0.2965, allocations: 301.1 kB / 463.1 MB, free: 113.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.297, allocations: 407.2 kB / 463.5 MB, free: 113.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006209/0.2976, allocations: 1.09 MB / 464.6 MB, free: 111.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.2987, allocations: 1.61 MB / 466.2 MB, free: 109.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.2987, allocations: 8 kB / 466.2 MB, free: 109.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001637/0.3004, allocations: 2.243 MB / 468.5 MB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3004, allocations: 16 kB / 468.5 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/0.3005, allocations: 160 kB / 468.6 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-05/0.3005, allocations: 35.16 kB / 468.7 MB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.3011, allocations: 357.6 kB / 469 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.001e-05/0.3012, allocations: 55.56 kB / 469.1 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009173/0.3021, allocations: 195.3 kB / 469.3 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.3022, allocations: 120 kB / 469.4 MB, free: 106.7 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.0007333/0.3029, allocations: 0.713 MB / 470.1 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003049/0.3032, allocations: 0.753 MB / 470.8 MB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/0.3054, allocations: 2.15 MB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.3055, allocations: 8 kB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3055, allocations: 0 / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.3055, allocations: 7.984 kB / 473 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.3084, allocations: 3.491 MB / 476.5 MB, free: 99.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.833e-05/0.3085, allocations: 138.8 kB / 476.6 MB, free: 99.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.3089, allocations: 159.8 kB / 476.8 MB, free: 99.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/0.3089, allocations: 4 kB / 476.8 MB, free: 99.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.302e-05/0.3089, allocations: 59.98 kB / 476.8 MB, free: 99.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3089, allocations: 4 kB / 476.8 MB, free: 99.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3089, allocations: 0 / 476.8 MB, free: 99.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.3108, allocations: 2.188 MB / 479 MB, free: 97.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007156/0.3115, allocations: 0.7841 MB / 479.8 MB, free: 96.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.3118, allocations: 12 kB / 479.8 MB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.3123, allocations: 31.97 kB / 479.9 MB, free: 96.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.3125, allocations: 108.5 kB / 480 MB, free: 96.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.109e-05/0.3125, allocations: 67.98 kB / 480 MB, free: 96.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002477/0.315, allocations: 3.612 MB / 483.6 MB, free: 92.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.315, allocations: 0 / 483.6 MB, free: 92.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001332/0.3164, allocations: 1.084 MB / 484.7 MB, free: 91.5 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.002702/0.3191, allocations: 3.937 MB / 488.7 MB, free: 87.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.3203, allocations: 1.366 MB / 490 MB, free: 86.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3203, allocations: 0 / 490 MB, free: 86.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.3208, allocations: 0.732 MB / 490.8 MB, free: 85.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.3231, allocations: 1.173 MB / 491.9 MB, free: 84.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/0.3491, allocations: 30.43 MB / 0.5101 GB, free: 53.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.3501, allocations: 2.102 MB / 0.5122 GB, free: 51.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00135/0.3515, allocations: 0.6885 MB / 0.5129 GB, free: 50.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.3527, allocations: 2.394 MB / 0.5152 GB, free: 47.97 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3527, allocations: 0 / 0.5152 GB, free: 47.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2612/0.6139, allocations: 116.9 MB / 0.6294 GB, free: 144.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/13, allocations: 9.359 kB / 0.6294 GB, free: 144.5 MB / 458.7 MB " [Timeout remaining time 647] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/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: 14.972087864764035]