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.001351/0.001351, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 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.00143/0.00143, allocations: 151.5 kB / 24.9 MB, free: 8.281 MB / 18.57 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.8734/0.8734, allocations: 173.4 MB / 201.5 MB, free: 9.203 MB / 186.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.392e-06/1.392e-06, allocations: 0 / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.557e-05, allocations: 2.312 kB / 268.5 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01299/0.013, allocations: 14.24 MB / 282.7 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1134/0.1264, allocations: 19.86 MB / 302.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001326/0.1277, allocations: 141.3 kB / 302.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.1298, allocations: 1.201 MB / 303.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004205/0.134, allocations: 2.501 MB / 306.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002543/0.1365, allocations: 1.464 MB / 307.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004725/0.1412, allocations: 6.908 MB / 314.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.1416, allocations: 300 kB / 315.1 MB, free: 8.594 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.1436, allocations: 3.006 MB / 318.1 MB, free: 6.949 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006302/0.1442, allocations: 0.8566 MB / 318.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.299e-05/0.1443, allocations: 72 kB / 319 MB, free: 6.039 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.1459, allocations: 1.202 MB / 320.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.146, allocations: 349.4 kB / 320.5 MB, free: 4.516 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004739/0.1465, allocations: 0.7632 MB / 321.3 MB, free: 3.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.1482, allocations: 2.875 MB / 324.2 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1482, allocations: 0 / 324.2 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1482, allocations: 0 / 324.2 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.1482, allocations: 3.938 kB / 324.2 MB, free: 0.8594 MB / 266.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.002544/0.1508, allocations: 3.815 MB / 328 MB, free: 12.99 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.1508, allocations: 12.92 kB / 328 MB, free: 12.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.151, allocations: 291.6 kB / 328.3 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/0.1528, allocations: 2.12 MB / 330.4 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1529, allocations: 33 kB / 330.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.1529, allocations: 48 kB / 330.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.1534, allocations: 467.5 kB / 330.9 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1534, allocations: 0 / 330.9 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.1535, allocations: 23.94 kB / 331 MB, free: 9.887 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.1535, allocations: 23.92 kB / 331 MB, free: 9.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1538, allocations: 232.4 kB / 331.2 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.1559, allocations: 1.565 MB / 332.8 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.1561, allocations: 276.9 kB / 333.1 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.1564, allocations: 327 kB / 333.4 MB, free: 7.434 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/0.1802, allocations: 23.01 MB / 356.4 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.1805, allocations: 209.9 kB / 356.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/0.1805, allocations: 0 / 356.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005373/0.181, allocations: 491.2 kB / 357.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.181, allocations: 63.39 kB / 357.1 MB, free: 14.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.1826, allocations: 2.803 MB / 359.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1827, allocations: 33.7 kB / 360 MB, free: 11.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/0.183, allocations: 0.7768 MB / 360.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.1831, allocations: 178.5 kB / 360.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1833, allocations: 190.2 kB / 361.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.591e-05/0.1834, allocations: 345.8 kB / 361.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.1835, allocations: 77.95 kB / 361.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.1837, allocations: 452.2 kB / 362 MB, free: 9.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.1844, allocations: 0.6209 MB / 362.6 MB, free: 8.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1844, allocations: 4 kB / 362.6 MB, free: 8.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006124/0.185, allocations: 0.7002 MB / 363.3 MB, free: 8.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.185, allocations: 12 kB / 363.3 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/0.1851, allocations: 20 kB / 363.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.1851, allocations: 16.72 kB / 363.3 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.1854, allocations: 207.2 kB / 363.5 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.1854, allocations: 31.86 kB / 363.6 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004411/0.1859, allocations: 99.28 kB / 363.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.713e-05/0.1859, allocations: 40 kB / 363.7 MB, free: 7.824 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.0002693/0.1862, allocations: 173.4 kB / 363.9 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.1864, allocations: 255.7 kB / 364.1 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009745/0.1874, allocations: 0.8029 MB / 364.9 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1874, allocations: 4 kB / 364.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.1874, allocations: 0 / 364.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.1874, allocations: 4 kB / 364.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.1887, allocations: 1.605 MB / 366.5 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-05/0.1887, allocations: 11.98 kB / 366.5 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.1889, allocations: 83.88 kB / 366.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1889, allocations: 0 / 366.6 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.189, allocations: 12 kB / 366.6 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.189, allocations: 8.062 kB / 366.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.189, allocations: 0 / 366.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005648/0.1895, allocations: 0.6461 MB / 367.3 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003747/0.1899, allocations: 401.2 kB / 367.7 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.1901, allocations: 12 kB / 367.7 MB, free: 3.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.1904, allocations: 23.97 kB / 367.7 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.019e-05/0.1905, allocations: 43.81 kB / 367.8 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.1905, allocations: 15.98 kB / 367.8 MB, free: 3.664 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001134/0.1916, allocations: 1.487 MB / 369.3 MB, free: 2.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1916, allocations: 4.031 kB / 369.3 MB, free: 2.176 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007522/0.1924, allocations: 0.6047 MB / 369.9 MB, free: 1.57 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.0008288/0.1932, allocations: 0.9219 MB / 370.8 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.1937, allocations: 464.9 kB / 371.3 MB, free: 164 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-05/0.1937, allocations: 48.44 kB / 371.3 MB, free: 116 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.1939, allocations: 238 kB / 371.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.1952, allocations: 0.65 MB / 372.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003839/0.199, allocations: 4.179 MB / 376.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.1993, allocations: 398.4 kB / 376.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005511/0.1998, allocations: 361.3 kB / 377.1 MB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007651/0.2006, allocations: 0.585 MB / 377.7 MB, free: 9.605 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2006, allocations: 0 / 377.7 MB, free: 9.605 MB / 330.7 MB Notification: Performance of Templates: time 0.04572/0.2463, allocations: 38.18 MB / 415.9 MB, free: 3.988 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 -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.178611727897078]