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.001306/0.001306, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001464/0.001464, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.9476/0.9476, allocations: 177.1 MB / 205.3 MB, free: 5.113 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: 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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.541e-06/5.541e-06, allocations: 0 / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.229e-05/1.783e-05, allocations: 5.828 kB / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.122/0.122, allocations: 24.7 MB / 298.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02002/0.142, allocations: 21.64 MB / 319.8 MB, free: 0.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.1443, allocations: 269.2 kB / 320.1 MB, free: 496 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002401/0.1467, allocations: 1.751 MB / 321.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005953/0.1526, allocations: 3.454 MB / 325.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.1555, allocations: 1.655 MB / 326.9 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.1667, allocations: 13.39 MB / 340.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008963/0.1676, allocations: 0.5609 MB / 340.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005174/0.1728, allocations: 5.936 MB / 346.8 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.1743, allocations: 1.561 MB / 348.4 MB, free: 5.777 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002505/0.1745, allocations: 132 kB / 348.5 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002527/0.1771, allocations: 1.276 MB / 349.8 MB, free: 4.371 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003636/0.1774, allocations: 0.6165 MB / 350.4 MB, free: 3.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.1786, allocations: 1.413 MB / 351.8 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003647/0.1822, allocations: 4.656 MB / 356.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1822, allocations: 0 / 356.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1822, allocations: 0 / 356.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.507e-05/0.1823, allocations: 0 / 356.4 MB, free: 13.65 MB / 314.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.004868/0.1872, allocations: 6.771 MB / 363.2 MB, free: 6.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.1872, allocations: 12.03 kB / 363.2 MB, free: 6.789 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004962/0.1877, allocations: 0.5228 MB / 363.8 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003568/0.1913, allocations: 3.92 MB / 367.7 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.1913, allocations: 70 kB / 367.7 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.1914, allocations: 109.2 kB / 367.8 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007893/0.1922, allocations: 0.7774 MB / 368.6 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.1922, allocations: 7.938 kB / 368.6 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.96e-05/0.1923, allocations: 35.94 kB / 368.7 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.1923, allocations: 39.97 kB / 368.7 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006287/0.193, allocations: 427.1 kB / 369.1 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003664/0.1966, allocations: 2.885 MB / 372 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.1971, allocations: 477.5 kB / 372.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004925/0.1976, allocations: 0.6357 MB / 373.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04604/0.2436, allocations: 45.53 MB / 418.6 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003617/0.244, allocations: 338 kB / 419 MB, free: 13.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.635e-06/0.244, allocations: 0 / 419 MB, free: 13.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.0009041/0.2449, allocations: 0.8439 MB / 419.8 MB, free: 12.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.2449, allocations: 64.06 kB / 419.9 MB, free: 12.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.2478, allocations: 5.064 MB / 424.9 MB, free: 7.152 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.312e-05/0.2479, allocations: 41.7 kB / 425 MB, free: 7.105 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006905/0.2486, allocations: 1.389 MB / 426.4 MB, free: 5.703 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.2487, allocations: 317.4 kB / 426.7 MB, free: 5.391 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002642/0.249, allocations: 342.9 kB / 427 MB, free: 5.051 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.2491, allocations: 305.1 kB / 427.3 MB, free: 4.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.2492, allocations: 139.9 kB / 427.4 MB, free: 4.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.2497, allocations: 0.8408 MB / 428.3 MB, free: 3.441 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007673/0.2505, allocations: 1.158 MB / 429.4 MB, free: 1.945 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.2505, allocations: 8 kB / 429.5 MB, free: 1.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00122/0.2517, allocations: 1.291 MB / 430.7 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2517, allocations: 16 kB / 430.8 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.291e-05/0.2518, allocations: 43.98 kB / 430.8 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.2518, allocations: 32 kB / 430.8 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.2524, allocations: 360.5 kB / 431.2 MB, free: 208 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.291e-05/0.2524, allocations: 47.86 kB / 431.2 MB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1058/0.3583, allocations: 181.7 kB / 431.4 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/0.3585, allocations: 67.59 kB / 431.5 MB, free: 112.6 MB / 378.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.0007472/0.3593, allocations: 228.3 kB / 431.7 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006499/0.3599, allocations: 468.7 kB / 432.2 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.362, allocations: 1.472 MB / 433.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.362, allocations: 8.781 kB / 433.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.362, allocations: 7.906 kB / 433.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.362, allocations: 4.031 kB / 433.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00289/0.3649, allocations: 2.762 MB / 436.4 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.476e-05/0.365, allocations: 22.78 kB / 436.4 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/0.3654, allocations: 147.6 kB / 436.6 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3654, allocations: 2.688 kB / 436.6 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.3654, allocations: 20.47 kB / 436.6 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.3654, allocations: 2.875 kB / 436.6 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3654, allocations: 2.969 kB / 436.6 MB, free: 112.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.3666, allocations: 1.06 MB / 437.7 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007699/0.3674, allocations: 0.7393 MB / 438.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/0.3677, allocations: 11.94 kB / 438.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005747/0.3683, allocations: 34.8 kB / 438.5 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.3684, allocations: 57.62 kB / 438.5 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.605e-05/0.3685, allocations: 24.7 kB / 438.5 MB, free: 111.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001985/0.3705, allocations: 2.722 MB / 441.3 MB, free: 111.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3705, allocations: 0.6562 kB / 441.3 MB, free: 111.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001342/0.3718, allocations: 1.091 MB / 442.3 MB, free: 111.6 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.001181/0.373, allocations: 1.455 MB / 443.8 MB, free: 111.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007002/0.3737, allocations: 0.8459 MB / 444.6 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.693e-05/0.3737, allocations: 81.53 kB / 444.7 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.374, allocations: 434.6 kB / 445.1 MB, free: 111 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.3762, allocations: 1.188 MB / 446.3 MB, free: 110.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005187/0.3814, allocations: 7.561 MB / 453.9 MB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3818, allocations: 0.6917 MB / 454.6 MB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009607/0.3827, allocations: 0.6897 MB / 455.3 MB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/0.384, allocations: 1.062 MB / 456.3 MB, free: 104.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.384, allocations: 4 kB / 456.3 MB, free: 104.1 MB / 378.7 MB Notification: Performance of Templates: time 0.07108/0.4551, allocations: 66.12 MB / 0.5102 GB, free: 40.23 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.8852368080988526]