Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008734/0.0008734, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008543/0.0008543, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8386/0.8386, allocations: 177 MB / 205.2 MB, free: 5.016 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048e-05/1.179e-05, allocations: 5.266 kB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.09743/0.09744, allocations: 24.71 MB / 298.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.115, allocations: 21.63 MB / 319.7 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.1165, allocations: 271.7 kB / 320 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.1185, allocations: 1.755 MB / 321.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004433/0.123, allocations: 3.453 MB / 325.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.125, allocations: 1.648 MB / 326.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00976/0.1347, allocations: 13.41 MB / 340.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006308/0.1354, allocations: 0.5531 MB / 340.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004306/0.1397, allocations: 5.932 MB / 346.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00127/0.1409, allocations: 1.565 MB / 348.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.1411, allocations: 132 kB / 348.4 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.1429, allocations: 1.272 MB / 349.7 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003663/0.1433, allocations: 0.6165 MB / 350.3 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.1443, allocations: 1.421 MB / 351.7 MB, free: 2.293 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003099/0.1474, allocations: 4.652 MB / 356.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1474, allocations: 0 / 356.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1474, allocations: 0 / 356.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.919e-05/0.1475, allocations: 4 kB / 356.4 MB, free: 13.61 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.004434/0.1519, allocations: 6.766 MB / 363.2 MB, free: 6.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.855e-05/0.1519, allocations: 11.98 kB / 363.2 MB, free: 6.758 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004051/0.1523, allocations: 0.5267 MB / 363.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003373/0.1557, allocations: 3.932 MB / 367.6 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.1558, allocations: 66 kB / 367.7 MB, free: 2.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.1559, allocations: 103.9 kB / 367.8 MB, free: 1.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007789/0.1567, allocations: 0.7774 MB / 368.6 MB, free: 1.191 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1567, allocations: 0 / 368.6 MB, free: 1.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.1567, allocations: 43.92 kB / 368.6 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.1568, allocations: 39.98 kB / 368.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/0.1574, allocations: 427.1 kB / 369.1 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.1609, allocations: 2.881 MB / 371.9 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.1614, allocations: 477.5 kB / 372.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004939/0.1619, allocations: 0.6362 MB / 373.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04504/0.2069, allocations: 45.52 MB / 418.6 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.2073, allocations: 342 kB / 418.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.645e-06/0.2073, allocations: 0 / 418.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.0008828/0.2082, allocations: 0.8478 MB / 419.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2082, allocations: 64.05 kB / 419.8 MB, free: 12.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002835/0.211, allocations: 5.064 MB / 424.9 MB, free: 7.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.2111, allocations: 41.7 kB / 424.9 MB, free: 7.062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007116/0.2118, allocations: 1.397 MB / 426.3 MB, free: 5.652 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.212, allocations: 305.4 kB / 426.6 MB, free: 5.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.2122, allocations: 346.9 kB / 427 MB, free: 5.008 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.2123, allocations: 305.1 kB / 427.3 MB, free: 4.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.2125, allocations: 135.9 kB / 427.4 MB, free: 4.574 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004555/0.2129, allocations: 0.8433 MB / 428.2 MB, free: 3.402 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007646/0.2137, allocations: 1.166 MB / 429.4 MB, free: 1.902 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.2137, allocations: 8 kB / 429.4 MB, free: 1.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001079/0.2148, allocations: 1.283 MB / 430.7 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.2148, allocations: 19.98 kB / 430.7 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-05/0.2149, allocations: 40 kB / 430.7 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.2149, allocations: 32 kB / 430.8 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.2155, allocations: 364 kB / 431.1 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.2155, allocations: 51.78 kB / 431.2 MB, free: 112 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1002/0.3157, allocations: 180 kB / 431.4 MB, free: 112.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/0.3159, allocations: 70.81 kB / 431.4 MB, free: 112.7 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.0006545/0.3166, allocations: 222.9 kB / 431.6 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000602/0.3172, allocations: 466.6 kB / 432.1 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002504/0.3197, allocations: 1.475 MB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.3197, allocations: 8.312 kB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3197, allocations: 3.625 kB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.3197, allocations: 7.094 kB / 433.6 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.3231, allocations: 2.763 MB / 436.4 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.68e-05/0.3232, allocations: 26.53 kB / 436.4 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/0.3237, allocations: 147 kB / 436.5 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.3237, allocations: 3.844 kB / 436.5 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.3238, allocations: 17.66 kB / 436.5 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.3238, allocations: 5.266 kB / 436.6 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3238, allocations: 0.6562 kB / 436.6 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.3252, allocations: 1.059 MB / 437.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009327/0.3262, allocations: 0.7419 MB / 438.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004786/0.3266, allocations: 14.66 kB / 438.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000866/0.3275, allocations: 28.64 kB / 438.4 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.3277, allocations: 60.83 kB / 438.5 MB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-05/0.3277, allocations: 25.98 kB / 438.5 MB, free: 111.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002527/0.3303, allocations: 2.723 MB / 441.2 MB, free: 111.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3303, allocations: 0 / 441.2 MB, free: 111.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001717/0.332, allocations: 1.086 MB / 442.3 MB, free: 111.7 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.001433/0.3334, allocations: 1.451 MB / 443.7 MB, free: 111.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008615/0.3343, allocations: 0.8421 MB / 444.6 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.709e-05/0.3343, allocations: 81.53 kB / 444.7 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.3347, allocations: 442 kB / 445.1 MB, free: 111.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.3377, allocations: 1.186 MB / 446.3 MB, free: 110.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00593/0.3437, allocations: 7.563 MB / 453.8 MB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.3441, allocations: 0.6906 MB / 454.5 MB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001188/0.3452, allocations: 0.6822 MB / 455.2 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.3469, allocations: 1.071 MB / 456.3 MB, free: 104.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3469, allocations: 0 / 456.3 MB, free: 104.2 MB / 378.7 MB Notification: Performance of Templates: time 0.05587/0.4028, allocations: 66.09 MB / 0.5101 GB, free: 40.35 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.5382675579749048]