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.001427/0.001427, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001545/0.001545, allocations: 159 kB / 25.61 MB, free: 8.891 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.9262/0.9262, allocations: 177 MB / 205.9 MB, free: 4.457 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.272e-06/1.272e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.061e-05/1.188e-05, allocations: 2.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008793/0.008805, allocations: 14.26 MB / 288.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01536/0.02417, allocations: 19.48 MB / 307.8 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.02518, allocations: 134.5 kB / 308 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.02693, allocations: 1.168 MB / 309.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003863/0.0308, allocations: 2.491 MB / 311.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002176/0.03297, allocations: 1.449 MB / 313.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005385/0.03836, allocations: 7.033 MB / 320.1 MB, free: 6.113 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003923/0.03875, allocations: 270.1 kB / 320.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.04159, allocations: 3.1 MB / 323.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007151/0.0423, allocations: 0.8486 MB / 324.3 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.986e-05/0.0424, allocations: 72 kB / 324.4 MB, free: 1.793 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001774/0.04418, allocations: 1.206 MB / 325.6 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.04437, allocations: 345.4 kB / 325.9 MB, free: 252 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005576/0.04493, allocations: 0.7709 MB / 326.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002164/0.04709, allocations: 2.879 MB / 329.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.0471, allocations: 0 / 329.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.0471, allocations: 0 / 329.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.04712, allocations: 4 kB / 329.6 MB, free: 12.58 MB / 314.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.003121/0.05024, allocations: 4.132 MB / 333.7 MB, free: 8.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.05027, allocations: 12.03 kB / 333.7 MB, free: 8.371 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003027/0.05057, allocations: 473.2 kB / 334.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.0525, allocations: 2.571 MB / 336.8 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.05252, allocations: 37 kB / 336.8 MB, free: 5.203 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.008e-05/0.0526, allocations: 59.88 kB / 336.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/0.05312, allocations: 488.7 kB / 337.3 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.05314, allocations: 0 / 337.3 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.05318, allocations: 20 kB / 337.4 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.0532, allocations: 27.98 kB / 337.4 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.05362, allocations: 424.3 kB / 337.8 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.0563, allocations: 2.355 MB / 340.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.05662, allocations: 301.3 kB / 340.4 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.05693, allocations: 381.6 kB / 340.8 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1166/0.1735, allocations: 15.19 MB / 356 MB, free: 54.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.1738, allocations: 267.1 kB / 356.3 MB, free: 54.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.1738, allocations: 0 / 356.3 MB, free: 54.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.000673/0.1745, allocations: 0.8321 MB / 357.1 MB, free: 54.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.34e-05/0.1745, allocations: 60.38 kB / 357.2 MB, free: 54.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.1761, allocations: 3.292 MB / 360.5 MB, free: 52.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.1761, allocations: 36.11 kB / 360.5 MB, free: 52.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007296/0.1768, allocations: 1.788 MB / 362.3 MB, free: 50.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.1769, allocations: 172.4 kB / 362.4 MB, free: 50.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.1771, allocations: 241.2 kB / 362.7 MB, free: 50.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.144e-05/0.1771, allocations: 0.5092 MB / 363.2 MB, free: 49.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.1772, allocations: 108.7 kB / 363.3 MB, free: 49.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.1774, allocations: 0.6296 MB / 363.9 MB, free: 48.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.1778, allocations: 0.8146 MB / 364.7 MB, free: 47.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1778, allocations: 7.062 kB / 364.7 MB, free: 47.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0007065/0.1785, allocations: 1.037 MB / 365.8 MB, free: 46.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1786, allocations: 19.03 kB / 365.8 MB, free: 46.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.699e-05/0.1786, allocations: 81.5 kB / 365.9 MB, free: 46.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1786, allocations: 16 kB / 365.9 MB, free: 46.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.179, allocations: 202 kB / 366.1 MB, free: 46.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.179, allocations: 31.3 kB / 366.1 MB, free: 46.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.1794, allocations: 104.6 kB / 366.2 MB, free: 46.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.1795, allocations: 58.41 kB / 366.3 MB, free: 46.33 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.0002646/0.1797, allocations: 217.7 kB / 366.5 MB, free: 46.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.1799, allocations: 437.3 kB / 366.9 MB, free: 45.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009959/0.1809, allocations: 1.001 MB / 367.9 MB, free: 44.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1809, allocations: 11.5 kB / 367.9 MB, free: 44.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.1809, allocations: 0 / 367.9 MB, free: 44.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1809, allocations: 3.984 kB / 367.9 MB, free: 44.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.1824, allocations: 2.193 MB / 370.1 MB, free: 42.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.788e-05/0.1825, allocations: 68.06 kB / 370.2 MB, free: 42.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.1827, allocations: 87.41 kB / 370.3 MB, free: 42.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1827, allocations: 6.406 kB / 370.3 MB, free: 42.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.1827, allocations: 31.98 kB / 370.3 MB, free: 42.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1827, allocations: 0 / 370.3 MB, free: 42.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1827, allocations: 4 kB / 370.3 MB, free: 42.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.1834, allocations: 1.053 MB / 371.4 MB, free: 41.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003369/0.1837, allocations: 453.3 kB / 371.8 MB, free: 41.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.1839, allocations: 12.03 kB / 371.8 MB, free: 41.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.1842, allocations: 27.97 kB / 371.9 MB, free: 41.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.1843, allocations: 55.94 kB / 371.9 MB, free: 41.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.528e-05/0.1843, allocations: 39.98 kB / 372 MB, free: 41.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008185/0.1852, allocations: 1.703 MB / 373.7 MB, free: 39.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1852, allocations: 0 / 373.7 MB, free: 39.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007035/0.1859, allocations: 0.5952 MB / 374.3 MB, free: 39.05 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.0007223/0.1866, allocations: 0.9236 MB / 375.2 MB, free: 38.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004369/0.187, allocations: 0.5807 MB / 375.8 MB, free: 37.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.187, allocations: 4 kB / 375.8 MB, free: 37.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.1872, allocations: 332.7 kB / 376.1 MB, free: 37.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.1886, allocations: 0.6641 MB / 376.8 MB, free: 36.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.1914, allocations: 4.319 MB / 381.1 MB, free: 32.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.1916, allocations: 402.4 kB / 381.5 MB, free: 31.97 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000536/0.1921, allocations: 353.3 kB / 381.8 MB, free: 31.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006971/0.1928, allocations: 0.7205 MB / 382.5 MB, free: 30.9 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1928, allocations: 0 / 382.5 MB, free: 30.9 MB / 314.7 MB Notification: Performance of Templates: time 0.04557/0.2384, allocations: 38.65 MB / 421.2 MB, free: 8.902 MB / 330.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.4604558632709086]