Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.0009706/0.0009706, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009697/0.0009697, allocations: 161 kB / 24.99 MB, free: 8.805 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.9238/0.9238, allocations: 177 MB / 205.2 MB, free: 5.574 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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.244e-05, allocations: 6.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009952/0.009974, allocations: 14.61 MB / 287.6 MB, free: 3.074 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1308/0.1408, allocations: 19.81 MB / 307.4 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.1431, allocations: 133.2 kB / 307.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002482/0.1455, allocations: 1.163 MB / 308.7 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006129/0.1517, allocations: 2.479 MB / 311.2 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003841/0.1555, allocations: 1.446 MB / 312.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006464/0.162, allocations: 6.917 MB / 319.5 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000524/0.1625, allocations: 266.2 kB / 319.8 MB, free: 2.652 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.164, allocations: 1.609 MB / 321.4 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006132/0.1646, allocations: 0.8212 MB / 322.2 MB, free: 220 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1647, allocations: 72 kB / 322.3 MB, free: 148 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002759/0.1674, allocations: 1.202 MB / 323.5 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.1677, allocations: 341.4 kB / 323.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007581/0.1684, allocations: 0.7677 MB / 324.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003318/0.1717, allocations: 2.879 MB / 327.5 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1717, allocations: 0 / 327.5 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1717, allocations: 0 / 327.5 MB, free: 10.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.1e-05/0.1718, allocations: 0 / 327.5 MB, free: 10.95 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.003921/0.1757, allocations: 4.071 MB / 331.6 MB, free: 6.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1758, allocations: 11.98 kB / 331.6 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.1761, allocations: 481.2 kB / 332 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.1784, allocations: 2.641 MB / 334.7 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.1784, allocations: 37 kB / 334.7 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.948e-05/0.1785, allocations: 51.95 kB / 334.8 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.1793, allocations: 0.5436 MB / 335.3 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1793, allocations: 0 / 335.3 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.1793, allocations: 23.92 kB / 335.3 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.1793, allocations: 20.55 kB / 335.4 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000613/0.18, allocations: 490.4 kB / 335.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/0.1833, allocations: 2.922 MB / 338.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.1838, allocations: 321.4 kB / 339.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/0.1842, allocations: 415.5 kB / 339.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01572/0.1999, allocations: 15.25 MB / 354.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003595/0.2003, allocations: 279.7 kB / 355 MB, free: 14.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.747e-06/0.2003, allocations: 0 / 355 MB, free: 14.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001192/0.2015, allocations: 0.8737 MB / 355.9 MB, free: 13.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.2015, allocations: 71.33 kB / 355.9 MB, free: 13.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/0.2044, allocations: 3.327 MB / 359.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.2045, allocations: 37.7 kB / 359.3 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.2056, allocations: 1.765 MB / 361.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.2057, allocations: 178.5 kB / 361.2 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.2059, allocations: 236 kB / 361.5 MB, free: 8.258 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.206, allocations: 0.5082 MB / 362 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.2063, allocations: 129.9 kB / 362.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.2067, allocations: 0.6511 MB / 362.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.2074, allocations: 0.85 MB / 363.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.2074, allocations: 4 kB / 363.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001125/0.2085, allocations: 1.095 MB / 364.7 MB, free: 4.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.2085, allocations: 12.62 kB / 364.7 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.581e-05/0.2086, allocations: 80 kB / 364.8 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.2086, allocations: 16 kB / 364.8 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004485/0.2091, allocations: 209.1 kB / 365 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/0.2091, allocations: 27.86 kB / 365 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004974/0.2096, allocations: 99.34 kB / 365.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.2097, allocations: 64 kB / 365.2 MB, free: 4.031 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.000326/0.21, allocations: 224.2 kB / 365.4 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005104/0.2105, allocations: 429.4 kB / 365.8 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.2118, allocations: 1.036 MB / 366.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.2118, allocations: 7.984 kB / 366.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2118, allocations: 6.25 kB / 366.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2118, allocations: 0 / 366.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.2138, allocations: 2.144 MB / 369 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.707e-05/0.2139, allocations: 75.97 kB / 369.1 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.2141, allocations: 87.94 kB / 369.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2141, allocations: 0 / 369.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.2142, allocations: 35.88 kB / 369.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2142, allocations: 8.062 kB / 369.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2142, allocations: 0 / 369.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009575/0.2151, allocations: 1.103 MB / 370.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004215/0.2156, allocations: 451 kB / 370.8 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.2157, allocations: 19.92 kB / 370.8 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/0.2161, allocations: 15.98 kB / 370.8 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.2162, allocations: 63.92 kB / 370.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.2163, allocations: 36 kB / 370.9 MB, free: 14.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.2178, allocations: 1.819 MB / 372.7 MB, free: 12.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2178, allocations: 0 / 372.7 MB, free: 12.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001184/0.219, allocations: 0.6047 MB / 373.3 MB, free: 11.8 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.0008501/0.2199, allocations: 0.8347 MB / 374.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000735/0.2206, allocations: 0.6262 MB / 374.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2206, allocations: 0 / 374.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.2209, allocations: 352.3 kB / 375.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.2225, allocations: 0.663 MB / 375.8 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004408/0.2269, allocations: 4.315 MB / 380.1 MB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.2271, allocations: 398.4 kB / 380.5 MB, free: 4.477 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007143/0.2279, allocations: 365.3 kB / 380.9 MB, free: 4.113 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.228, allocations: 152.5 kB / 381 MB, free: 3.965 MB / 330.7 MB Notification: Performance of SimCode: time 2.374e-06/0.228, allocations: 0 / 381 MB, free: 3.965 MB / 330.7 MB Notification: Performance of Templates: time 0.04033/0.2683, allocations: 33.41 MB / 414.4 MB, free: 3.07 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.4146282579749823]