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.001522/0.001522, allocations: 75.75 kB / 21.97 MB, free: 2.598 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.001645/0.001645, allocations: 169 kB / 25.33 MB, free: 9.457 MB / 18.57 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 0.8219/0.8219, allocations: 158.6 MB / 187.2 MB, free: 2.492 MB / 170.7 MB " [Timeout remaining time 179] 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: 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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 251 MB, free: 3.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.821e-05, allocations: 5.406 kB / 251 MB, free: 3.672 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01701/0.01703, allocations: 24.03 MB / 275.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02348/0.04051, allocations: 20.43 MB / 295.5 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.04325, allocations: 277 kB / 295.8 MB, free: 6.762 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003248/0.0465, allocations: 1.636 MB / 297.4 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006081/0.05258, allocations: 3.387 MB / 300.8 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.05548, allocations: 1.577 MB / 302.4 MB, free: 116 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1294/0.1848, allocations: 13.06 MB / 315.4 MB, free: 17.79 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009694/0.1858, allocations: 0.4967 MB / 315.9 MB, free: 17.6 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002823/0.1886, allocations: 2.719 MB / 318.6 MB, free: 17.31 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.19, allocations: 1.453 MB / 320.1 MB, free: 17.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003667/0.1904, allocations: 134.9 kB / 320.2 MB, free: 17.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003004/0.1934, allocations: 1.138 MB / 321.4 MB, free: 17.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003598/0.1938, allocations: 0.6056 MB / 322 MB, free: 16.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00134/0.1951, allocations: 1.418 MB / 323.4 MB, free: 16.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004058/0.1991, allocations: 4.688 MB / 328.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1992, allocations: 0 / 328.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1992, allocations: 0 / 328.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.1993, allocations: 4 kB / 328.1 MB, free: 15.45 MB / 282.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.005635/0.2049, allocations: 7.18 MB / 335.3 MB, free: 8.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2049, allocations: 11.98 kB / 335.3 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005973/0.2055, allocations: 0.8577 MB / 336.1 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004455/0.21, allocations: 5.009 MB / 341.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.21, allocations: 66 kB / 341.2 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.2102, allocations: 95.95 kB / 341.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.2114, allocations: 0.946 MB / 342.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.2115, allocations: 0 / 342.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.435e-05/0.2116, allocations: 35.98 kB / 342.3 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.971e-05/0.2116, allocations: 43.62 kB / 342.3 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.2129, allocations: 0.922 MB / 343.2 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007164/0.22, allocations: 5.333 MB / 348.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008455/0.2209, allocations: 0.5721 MB / 349.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009716/0.2218, allocations: 0.8086 MB / 350 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03681/0.2587, allocations: 30.07 MB / 380 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.2591, allocations: 455 kB / 380.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.435e-06/0.2591, allocations: 0 / 380.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.00152/0.2606, allocations: 1.584 MB / 382.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.2607, allocations: 71.91 kB / 382.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004699/0.2654, allocations: 6.047 MB / 388.2 MB, free: 4.066 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.153e-05/0.2654, allocations: 37.7 kB / 388.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002141/0.2676, allocations: 3.25 MB / 391.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.2677, allocations: 315.5 kB / 391.8 MB, free: 476 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003297/0.2681, allocations: 432.6 kB / 392.2 MB, free: 36 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.2682, allocations: 480.8 kB / 392.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.2686, allocations: 240.4 kB / 392.9 MB, free: 15.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007133/0.2693, allocations: 1.234 MB / 394.1 MB, free: 13.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.2704, allocations: 1.624 MB / 395.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.2705, allocations: 8 kB / 395.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002037/0.2725, allocations: 2.016 MB / 397.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.2725, allocations: 12 kB / 397.8 MB, free: 9.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/0.2727, allocations: 168.9 kB / 398 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.733e-05/0.2727, allocations: 35.94 kB / 398 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006445/0.2733, allocations: 365 kB / 398.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.979e-05/0.2734, allocations: 45.92 kB / 398.4 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007943/0.2742, allocations: 186.6 kB / 398.6 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.2743, allocations: 128 kB / 398.7 MB, free: 8.918 MB / 346.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.000483/0.2748, allocations: 261.9 kB / 399 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004732/0.2752, allocations: 0.7804 MB / 399.7 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00221/0.2775, allocations: 1.931 MB / 401.7 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.2775, allocations: 11.94 kB / 401.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2775, allocations: 0 / 401.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2775, allocations: 7.984 kB / 401.7 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.2812, allocations: 3.706 MB / 405.4 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000117/0.2813, allocations: 140 kB / 405.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003767/0.2817, allocations: 150.3 kB / 405.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.2817, allocations: 11.92 kB / 405.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.826e-05/0.2818, allocations: 63.92 kB / 405.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2818, allocations: 6.938 kB / 405.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2818, allocations: 0 / 405.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.2833, allocations: 1.853 MB / 407.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007331/0.2841, allocations: 0.8249 MB / 408.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/0.2843, allocations: 15.94 kB / 408.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/0.2849, allocations: 23.98 kB / 408.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.285, allocations: 104.5 kB / 408.6 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.487e-05/0.2851, allocations: 75.08 kB / 408.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003081/0.2882, allocations: 3.25 MB / 411.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2882, allocations: 0 / 411.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001384/0.2896, allocations: 1.092 MB / 413 MB, free: 10.62 MB / 362.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.001163/0.2907, allocations: 1.298 MB / 414.3 MB, free: 9.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.2918, allocations: 1.155 MB / 415.4 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2918, allocations: 0 / 415.4 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005308/0.2923, allocations: 0.6408 MB / 416.1 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.2943, allocations: 1.027 MB / 417.1 MB, free: 6.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006733/0.301, allocations: 7.845 MB / 425 MB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.3015, allocations: 0.694 MB / 425.7 MB, free: 14.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001321/0.3028, allocations: 0.685 MB / 426.3 MB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.303, allocations: 288.5 kB / 426.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.303, allocations: 3.938 kB / 426.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of Templates: time 0.162/0.465, allocations: 58.2 MB / 484.8 MB, free: 98.29 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.489615855738521]