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.0009084/0.0009084, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0008696/0.0008696, allocations: 143 kB / 24.97 MB, free: 8.359 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.894/0.894, allocations: 173.4 MB / 201.5 MB, free: 9.348 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: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.389e-05/1.525e-05, allocations: 10.31 kB / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1231/0.1231, allocations: 25.29 MB / 293.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02149/0.1446, allocations: 21.36 MB / 314.7 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004189/0.1488, allocations: 267.5 kB / 315 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.1526, allocations: 1.692 MB / 316.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009286/0.1618, allocations: 3.429 MB / 320.1 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006093/0.1679, allocations: 1.631 MB / 321.7 MB, free: 1.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.02032/0.1883, allocations: 13.09 MB / 334.8 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.1896, allocations: 0.4936 MB / 335.3 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003826/0.1934, allocations: 2.984 MB / 338.3 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/0.1953, allocations: 1.502 MB / 339.8 MB, free: 1.496 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003654/0.1957, allocations: 136 kB / 339.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003291/0.199, allocations: 1.26 MB / 341.2 MB, free: 104 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003803/0.1994, allocations: 0.6011 MB / 341.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002199/0.2016, allocations: 1.41 MB / 343.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005838/0.2074, allocations: 4.656 MB / 347.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2074, allocations: 0 / 347.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2074, allocations: 0 / 347.9 MB, free: 9.402 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.00019/0.2076, allocations: 0 / 347.9 MB, free: 9.402 MB / 298.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.006266/0.2139, allocations: 7.14 MB / 355 MB, free: 2.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.2139, allocations: 8.922 kB / 355 MB, free: 2.172 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/0.2146, allocations: 0.8467 MB / 355.9 MB, free: 1.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004404/0.219, allocations: 4.975 MB / 360.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.2191, allocations: 66 kB / 360.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.2193, allocations: 99.91 kB / 361 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.2208, allocations: 0.9346 MB / 361.9 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.2208, allocations: 0 / 361.9 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.698e-05/0.2209, allocations: 39.94 kB / 362 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/0.2209, allocations: 39.97 kB / 362 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.222, allocations: 0.9259 MB / 362.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005887/0.2279, allocations: 5.318 MB / 368.2 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000881/0.2288, allocations: 0.564 MB / 368.8 MB, free: 4.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007709/0.2296, allocations: 0.8049 MB / 369.6 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03014/0.2597, allocations: 29.92 MB / 399.5 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005088/0.2602, allocations: 447.8 kB / 400 MB, free: 4.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 2.655e-06/0.2602, allocations: 0 / 400 MB, free: 4.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.001766/0.262, allocations: 1.583 MB / 401.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.262, allocations: 60.06 kB / 401.6 MB, free: 2.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004925/0.2669, allocations: 6.012 MB / 407.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.366e-05/0.267, allocations: 41.7 kB / 407.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001969/0.269, allocations: 3.259 MB / 410.9 MB, free: 9.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.2692, allocations: 317.4 kB / 411.2 MB, free: 8.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005781/0.2698, allocations: 428.7 kB / 411.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.2698, allocations: 480.7 kB / 412.1 MB, free: 8.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003319/0.2702, allocations: 239.9 kB / 412.4 MB, free: 7.777 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007322/0.2709, allocations: 1.241 MB / 413.6 MB, free: 6.082 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.2721, allocations: 1.617 MB / 415.2 MB, free: 4.008 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.2721, allocations: 4 kB / 415.2 MB, free: 4.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002073/0.2742, allocations: 2.015 MB / 417.2 MB, free: 1.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.2742, allocations: 16 kB / 417.3 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/0.2743, allocations: 163.3 kB / 417.4 MB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.154e-05/0.2744, allocations: 36.75 kB / 417.4 MB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007614/0.2751, allocations: 359.4 kB / 417.8 MB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.891e-05/0.2752, allocations: 47.86 kB / 417.8 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.2763, allocations: 182.7 kB / 418 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.2764, allocations: 124 kB / 418.1 MB, free: 1.074 MB / 362.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.0005597/0.277, allocations: 267.8 kB / 418.4 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000513/0.2775, allocations: 0.7726 MB / 419.2 MB, free: 24 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.2799, allocations: 1.927 MB / 421.1 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.2799, allocations: 11.98 kB / 421.1 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2799, allocations: 0 / 421.1 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.2799, allocations: 0 / 421.1 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.2836, allocations: 3.685 MB / 424.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003639/0.2839, allocations: 140 kB / 424.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.2844, allocations: 155.8 kB / 425.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.2844, allocations: 4 kB / 425.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.2844, allocations: 52 kB / 425.1 MB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.2844, allocations: 7.984 kB / 425.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2844, allocations: 3.938 kB / 425.2 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.2861, allocations: 1.843 MB / 427 MB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009084/0.287, allocations: 0.8132 MB / 427.8 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003356/0.2873, allocations: 27.88 kB / 427.8 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/0.2879, allocations: 23.98 kB / 427.9 MB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.2881, allocations: 104.5 kB / 428 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-05/0.2882, allocations: 71.98 kB / 428 MB, free: 7.059 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002987/0.2912, allocations: 3.229 MB / 431.3 MB, free: 3.859 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2912, allocations: 0 / 431.3 MB, free: 3.859 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001836/0.293, allocations: 1.081 MB / 432.3 MB, free: 2.777 MB / 378.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.001285/0.2943, allocations: 1.296 MB / 433.6 MB, free: 1.465 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.2956, allocations: 1.151 MB / 434.8 MB, free: 276 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2956, allocations: 4 kB / 434.8 MB, free: 272 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.09589/0.3915, allocations: 0.6254 MB / 435.4 MB, free: 133.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004327/0.3958, allocations: 1.222 MB / 436.6 MB, free: 133.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/0.4048, allocations: 7.791 MB / 444.4 MB, free: 129.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/0.4055, allocations: 0.6921 MB / 445.1 MB, free: 129.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002219/0.4078, allocations: 0.6836 MB / 445.8 MB, free: 129.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003542/0.4081, allocations: 288 kB / 446.1 MB, free: 129.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4081, allocations: 0 / 446.1 MB, free: 129.5 MB / 378.7 MB Notification: Performance of Templates: time 0.07232/0.4804, allocations: 57.92 MB / 0.4922 GB, free: 78.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.127839850028977]