Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001484/0.002544, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008165/0.0008165, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009246/0.001741, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9706/0.9706, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1073/1.078, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.893e-05/2.017e-05, allocations: 2.875 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.00919/0.009211, allocations: 14.33 MB / 253.9 MB, free: 4.797 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.02789, allocations: 19.95 MB / 273.8 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002257/0.03015, allocations: 138.5 kB / 274 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1134/0.1436, allocations: 1.201 MB / 275.2 MB, free: 1.059 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005886/0.1495, allocations: 2.435 MB / 277.6 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00352/0.153, allocations: 1.412 MB / 279 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00758/0.1606, allocations: 6.773 MB / 285.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005743/0.1611, allocations: 299.1 kB / 286.1 MB, free: 15 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003587/0.1647, allocations: 3.515 MB / 289.6 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.1658, allocations: 0.846 MB / 290.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.1659, allocations: 73.41 kB / 290.5 MB, free: 14.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002734/0.1686, allocations: 1.267 MB / 291.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.1688, allocations: 277.7 kB / 292 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007336/0.1695, allocations: 0.7049 MB / 292.8 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002565/0.1721, allocations: 2.695 MB / 295.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.83e-05/0.1721, allocations: 0 / 295.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1721, allocations: 0 / 295.4 MB, free: 13.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.418e-05/0.1722, allocations: 0 / 295.4 MB, free: 13.33 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.003615/0.1758, allocations: 4.548 MB / 300 MB, free: 9.488 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.1758, allocations: 12.03 kB / 300 MB, free: 9.477 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/0.1762, allocations: 291.3 kB / 300.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.1781, allocations: 2.112 MB / 302.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.1782, allocations: 37.25 kB / 302.4 MB, free: 7.453 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.1783, allocations: 60.02 kB / 302.5 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.1788, allocations: 465.3 kB / 303 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1788, allocations: 0 / 303 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.812e-05/0.1788, allocations: 19.88 kB / 303 MB, free: 7.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.1789, allocations: 26.16 kB / 303 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.1792, allocations: 227.2 kB / 303.2 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.1815, allocations: 1.568 MB / 304.8 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.1818, allocations: 285 kB / 305.1 MB, free: 5.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.1821, allocations: 327 kB / 305.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02419/0.2063, allocations: 22.94 MB / 328.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.2065, allocations: 213 kB / 328.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.2066, allocations: 0 / 328.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007832/0.2073, allocations: 0.4917 MB / 329 MB, free: 12.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.2074, allocations: 55.41 kB / 329.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/0.2091, allocations: 2.801 MB / 331.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.2092, allocations: 29.7 kB / 331.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/0.2096, allocations: 0.7787 MB / 332.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.852e-05/0.2097, allocations: 180 kB / 332.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.2098, allocations: 188.2 kB / 333 MB, free: 9.711 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.844e-05/0.2099, allocations: 343.5 kB / 333.4 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.721e-05/0.21, allocations: 73.95 kB / 333.5 MB, free: 9.312 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.2102, allocations: 455.4 kB / 333.9 MB, free: 8.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.2107, allocations: 0.6226 MB / 334.5 MB, free: 8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.2107, allocations: 4 kB / 334.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000665/0.2113, allocations: 0.7007 MB / 335.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2114, allocations: 12 kB / 335.2 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.781e-05/0.2114, allocations: 20 kB / 335.3 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2114, allocations: 16.81 kB / 335.3 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.2119, allocations: 242.6 kB / 335.5 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.2119, allocations: 21.11 kB / 335.5 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006394/0.2125, allocations: 100.6 kB / 335.6 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.2126, allocations: 36 kB / 335.7 MB, free: 6.953 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.0002785/0.2129, allocations: 188.4 kB / 335.8 MB, free: 6.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.213, allocations: 251.7 kB / 336.1 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.2142, allocations: 0.8023 MB / 336.9 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2142, allocations: 4 kB / 336.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2142, allocations: 0 / 336.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.2142, allocations: 7.984 kB / 336.9 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.2156, allocations: 1.596 MB / 338.5 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.514e-05/0.2157, allocations: 12 kB / 338.5 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.2159, allocations: 108.9 kB / 338.6 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003951/0.2163, allocations: 409 kB / 339 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2163, allocations: 10.69 kB / 339 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.2164, allocations: 15.98 kB / 339 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.2164, allocations: 11.92 kB / 339.1 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2164, allocations: 0 / 339.1 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005666/0.2169, allocations: 0.6422 MB / 339.7 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.2171, allocations: 12 kB / 339.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.2174, allocations: 23.97 kB / 339.7 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.067e-05/0.2175, allocations: 43.48 kB / 339.8 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.2175, allocations: 15.98 kB / 339.8 MB, free: 3.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008433/0.2184, allocations: 1.49 MB / 341.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2184, allocations: 0 / 341.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008791/0.2193, allocations: 0.5969 MB / 341.9 MB, free: 1.316 MB / 314.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.0009093/0.2202, allocations: 0.9184 MB / 342.8 MB, free: 0.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004814/0.2206, allocations: 476.2 kB / 343.3 MB, free: 100 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.512e-05/0.2207, allocations: 44.5 kB / 343.3 MB, free: 56 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.2209, allocations: 234.8 kB / 343.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.2223, allocations: 0.9043 MB / 344.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006725/0.2291, allocations: 4.209 MB / 348.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.2293, allocations: 403.2 kB / 349 MB, free: 10.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007525/0.2301, allocations: 357.3 kB / 349.4 MB, free: 9.883 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008239/0.2309, allocations: 0.5917 MB / 350 MB, free: 9.285 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.2309, allocations: 0 / 350 MB, free: 9.285 MB / 330.7 MB Notification: Performance of Templates: time 0.04574/0.2766, allocations: 39.67 MB / 389.7 MB, free: 2.262 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4062781650573015]