Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001456/0.001456, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001666/0.001666, allocations: 165 kB / 24.56 MB, free: 8 kB / 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.9247/0.9247, allocations: 177.1 MB / 205 MB, free: 5.605 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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.403e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01014/0.01016, allocations: 14.67 MB / 287.6 MB, free: 2.812 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1212/0.1313, allocations: 19.85 MB / 307.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.1332, allocations: 136.9 kB / 307.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.1355, allocations: 1.165 MB / 308.8 MB, free: 9.094 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005373/0.1409, allocations: 2.479 MB / 311.3 MB, free: 7.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00355/0.1444, allocations: 1.442 MB / 312.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005599/0.15, allocations: 7.04 MB / 319.7 MB, free: 2.789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004814/0.1505, allocations: 262.3 kB / 320 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.153, allocations: 3.096 MB / 323.1 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008935/0.1539, allocations: 0.8563 MB / 324 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001811/0.1541, allocations: 72 kB / 324 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.1567, allocations: 1.202 MB / 325.2 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.1569, allocations: 353.4 kB / 325.6 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007275/0.1576, allocations: 0.7716 MB / 326.3 MB, free: 12.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.1606, allocations: 2.871 MB / 329.2 MB, free: 9.266 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1606, allocations: 4 kB / 329.2 MB, free: 9.262 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1606, allocations: 0 / 329.2 MB, free: 9.262 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.971e-05/0.1606, allocations: 0 / 329.2 MB, free: 9.262 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003432/0.1641, allocations: 4.094 MB / 333.3 MB, free: 5.102 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1641, allocations: 8.031 kB / 333.3 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003909/0.1645, allocations: 477.2 kB / 333.8 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.1666, allocations: 2.575 MB / 336.4 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.1666, allocations: 37 kB / 336.4 MB, free: 1.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.618e-05/0.1667, allocations: 51.95 kB / 336.4 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006858/0.1674, allocations: 0.5358 MB / 337 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1674, allocations: 4 kB / 337 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.1675, allocations: 19.94 kB / 337 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.1675, allocations: 19.98 kB / 337 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005819/0.1681, allocations: 490.4 kB / 337.5 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003199/0.1713, allocations: 2.918 MB / 340.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.1717, allocations: 321.9 kB / 340.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.1721, allocations: 421.8 kB / 341.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01473/0.1869, allocations: 15.24 MB / 356.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.1872, allocations: 276.5 kB / 356.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.255e-06/0.1872, allocations: 0 / 356.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.000936/0.1881, allocations: 0.8737 MB / 357.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.1882, allocations: 75.27 kB / 357.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/0.1907, allocations: 3.319 MB / 360.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.1907, allocations: 41.69 kB / 361 MB, free: 8.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.1918, allocations: 1.765 MB / 362.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1919, allocations: 178.6 kB / 362.9 MB, free: 6.871 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.1921, allocations: 232 kB / 363.1 MB, free: 6.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1922, allocations: 0.5121 MB / 363.6 MB, free: 6.117 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1924, allocations: 129.9 kB / 363.8 MB, free: 5.988 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.1928, allocations: 0.6472 MB / 364.4 MB, free: 5.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.1934, allocations: 0.85 MB / 365.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.862e-06/0.1935, allocations: 8 kB / 365.3 MB, free: 4.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001053/0.1945, allocations: 1.096 MB / 366.4 MB, free: 2.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.1945, allocations: 12 kB / 366.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-05/0.1946, allocations: 80 kB / 366.5 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.1946, allocations: 19.06 kB / 366.5 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.195, allocations: 204.1 kB / 366.7 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/0.195, allocations: 35.8 kB / 366.7 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.1955, allocations: 99.34 kB / 366.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/0.1955, allocations: 64 kB / 366.9 MB, free: 2.406 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003207/0.1959, allocations: 217.1 kB / 367.1 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.1961, allocations: 429.4 kB / 367.5 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.1974, allocations: 1.039 MB / 368.5 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1974, allocations: 4 kB / 368.6 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1974, allocations: 3.938 kB / 368.6 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1974, allocations: 3.984 kB / 368.6 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.1998, allocations: 2.144 MB / 370.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.738e-05/0.1999, allocations: 68 kB / 370.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.2002, allocations: 83.88 kB / 370.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.2002, allocations: 4 kB / 370.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/0.2002, allocations: 39.92 kB / 370.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.2002, allocations: 4 kB / 370.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2002, allocations: 0 / 370.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.2015, allocations: 1.111 MB / 372 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005352/0.202, allocations: 447 kB / 372.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.2023, allocations: 15.94 kB / 372.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004975/0.2028, allocations: 23.97 kB / 372.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.2029, allocations: 59.94 kB / 372.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/0.203, allocations: 39.98 kB / 372.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002059/0.205, allocations: 1.815 MB / 374.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.205, allocations: 0 / 374.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001214/0.2062, allocations: 0.6047 MB / 375 MB, free: 10.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001057/0.2073, allocations: 0.8332 MB / 375.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009023/0.2082, allocations: 0.6257 MB / 376.5 MB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2082, allocations: 0 / 376.5 MB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.2086, allocations: 351.7 kB / 376.8 MB, free: 8.312 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.2106, allocations: 0.667 MB / 377.5 MB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005241/0.2159, allocations: 4.311 MB / 381.8 MB, free: 3.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.2162, allocations: 398.4 kB / 382.2 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008525/0.2171, allocations: 361.3 kB / 382.5 MB, free: 2.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.2173, allocations: 156.5 kB / 382.7 MB, free: 2.348 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2173, allocations: 3.938 kB / 382.7 MB, free: 2.344 MB / 330.7 MB Notification: Performance of Templates: time 0.0532/0.2705, allocations: 39.89 MB / 422.6 MB, free: 11 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.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.551236807834357]