Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00101/0.00101, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001085/0.001085, allocations: 166.5 kB / 25.32 MB, free: 9.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8877/0.8877, allocations: 158.6 MB / 187.2 MB, free: 2.559 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.425e-05, allocations: 2.312 kB / 251 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01042/0.01045, allocations: 13.96 MB / 265 MB, free: 5.578 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01731/0.02776, allocations: 18.89 MB / 283.9 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.02919, allocations: 142.4 kB / 284 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.03125, allocations: 1.141 MB / 285.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.03607, allocations: 2.443 MB / 287.6 MB, free: 14.87 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003296/0.03936, allocations: 1.398 MB / 289 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006944/0.04631, allocations: 6.815 MB / 295.8 MB, free: 6.621 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.04678, allocations: 258.4 kB / 296.1 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001289/0.04807, allocations: 1.48 MB / 297.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006944/0.04876, allocations: 0.7863 MB / 298.3 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.04889, allocations: 76 kB / 298.4 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.05093, allocations: 1.089 MB / 299.5 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.05113, allocations: 345.4 kB / 299.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005944/0.05173, allocations: 0.7631 MB / 300.6 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1209/0.1727, allocations: 2.883 MB / 303.5 MB, free: 29.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1727, allocations: 0 / 303.5 MB, free: 29.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1727, allocations: 1.344 kB / 303.5 MB, free: 29.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001152/0.1728, allocations: 1.281 kB / 303.5 MB, free: 29.39 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.004133/0.1769, allocations: 4.093 MB / 307.6 MB, free: 27.05 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.177, allocations: 15.67 kB / 307.6 MB, free: 27.04 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005282/0.1775, allocations: 477.3 kB / 308.1 MB, free: 26.81 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.1802, allocations: 2.663 MB / 310.7 MB, free: 25.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.1802, allocations: 35.56 kB / 310.8 MB, free: 25.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.1803, allocations: 56.42 kB / 310.8 MB, free: 25.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007749/0.1811, allocations: 0.5407 MB / 311.4 MB, free: 25.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1811, allocations: 1.531 kB / 311.4 MB, free: 25.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.743e-05/0.1812, allocations: 19.58 kB / 311.4 MB, free: 25.85 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.1812, allocations: 20.08 kB / 311.4 MB, free: 25.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006379/0.1818, allocations: 488.5 kB / 311.9 MB, free: 25.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.1851, allocations: 2.944 MB / 314.8 MB, free: 25.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.1855, allocations: 320 kB / 315.1 MB, free: 25.3 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.1859, allocations: 425.1 kB / 315.6 MB, free: 25.28 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.1992, allocations: 15.27 MB / 330.8 MB, free: 19.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003122/0.1995, allocations: 278.7 kB / 331.1 MB, free: 19.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.1995, allocations: 0 / 331.1 MB, free: 19.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009515/0.2005, allocations: 0.8913 MB / 332 MB, free: 18.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2005, allocations: 63.19 kB / 332 MB, free: 18.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.2025, allocations: 3.344 MB / 335.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.2025, allocations: 37.7 kB / 335.4 MB, free: 14.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008058/0.2033, allocations: 1.765 MB / 337.2 MB, free: 13 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.2034, allocations: 181.7 kB / 337.4 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.2036, allocations: 239.4 kB / 337.6 MB, free: 12.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.21e-05/0.2036, allocations: 0.512 MB / 338.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.2038, allocations: 129.9 kB / 338.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.2041, allocations: 0.6469 MB / 338.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000545/0.2046, allocations: 0.859 MB / 339.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.2047, allocations: 4 kB / 339.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008914/0.2055, allocations: 1.096 MB / 340.8 MB, free: 9.008 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2056, allocations: 12.62 kB / 340.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-05/0.2056, allocations: 82.19 kB / 340.9 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/0.2057, allocations: 23.31 kB / 341 MB, free: 8.902 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.206, allocations: 204.5 kB / 341.2 MB, free: 8.719 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.2061, allocations: 27.45 kB / 341.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/0.2067, allocations: 103.4 kB / 341.3 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.136e-05/0.2068, allocations: 72 kB / 341.4 MB, free: 8.523 MB / 282.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.0002835/0.2071, allocations: 216 kB / 341.6 MB, free: 8.316 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002387/0.2073, allocations: 437.3 kB / 342 MB, free: 7.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.2085, allocations: 1.041 MB / 343 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.2085, allocations: 5.688 kB / 343 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2085, allocations: 0 / 343 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2085, allocations: 3.984 kB / 343.1 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.2104, allocations: 2.154 MB / 345.2 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.922e-05/0.2104, allocations: 71.98 kB / 345.3 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.2107, allocations: 87.69 kB / 345.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.2107, allocations: 0 / 345.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.2107, allocations: 32 kB / 345.4 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.2107, allocations: 7.984 kB / 345.4 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2107, allocations: 8 kB / 345.4 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007977/0.2115, allocations: 1.106 MB / 346.5 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.2119, allocations: 454.2 kB / 347 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.212, allocations: 12 kB / 347 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.2124, allocations: 15.98 kB / 347 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2125, allocations: 67.86 kB / 347.1 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.2125, allocations: 36 kB / 347.1 MB, free: 2.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001227/0.2138, allocations: 1.831 MB / 348.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2138, allocations: 0 / 348.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007861/0.2145, allocations: 0.6087 MB / 349.5 MB, free: 328 kB / 282.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.0007846/0.2153, allocations: 0.8342 MB / 350.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009043/0.2162, allocations: 0.6226 MB / 351 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2162, allocations: 0 / 351 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.2165, allocations: 347.2 kB / 351.3 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.2178, allocations: 0.5749 MB / 351.9 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.2218, allocations: 4.342 MB / 356.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.2221, allocations: 402.8 kB / 356.6 MB, free: 9.266 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005726/0.2226, allocations: 361.4 kB / 357 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.2228, allocations: 152.5 kB / 357.1 MB, free: 8.758 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2228, allocations: 4 kB / 357.1 MB, free: 8.754 MB / 298.7 MB Notification: Performance of Templates: time 0.03981/0.2626, allocations: 33.54 MB / 390.7 MB, free: 7.312 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.777323761023581]