Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001039/0.001039, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0008854/0.0008854, allocations: 169.4 kB / 24.91 MB, free: 8.77 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.9578/0.9578, allocations: 177 MB / 205.2 MB, free: 5.453 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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.089e-05/1.22e-05, allocations: 2.312 kB / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009027/0.009039, allocations: 13.76 MB / 287.2 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1205/0.1295, allocations: 19.81 MB / 307 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.1306, allocations: 137.1 kB / 307.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001809/0.1324, allocations: 1.18 MB / 308.3 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003764/0.1361, allocations: 2.391 MB / 310.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002131/0.1383, allocations: 1.408 MB / 312.1 MB, free: 6.961 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004249/0.1425, allocations: 6.847 MB / 318.9 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003975/0.1429, allocations: 298.5 kB / 319.2 MB, free: 3.152 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.1448, allocations: 3.044 MB / 322.3 MB, free: 104 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000771/0.1456, allocations: 0.829 MB / 323.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.1457, allocations: 76 kB / 323.2 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.1475, allocations: 1.253 MB / 324.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.1477, allocations: 345.5 kB / 324.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005332/0.1482, allocations: 0.7437 MB / 325.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002056/0.1503, allocations: 2.813 MB / 328.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1503, allocations: 0 / 328.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1503, allocations: 0 / 328.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.784e-05/0.1503, allocations: 0 / 328.3 MB, free: 10.03 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.002537/0.1529, allocations: 3.666 MB / 332 MB, free: 6.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.1529, allocations: 15.98 kB / 332 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.1531, allocations: 279.6 kB / 332.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.1548, allocations: 2.062 MB / 334.3 MB, free: 3.848 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.1548, allocations: 37 kB / 334.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.99e-05/0.1549, allocations: 48 kB / 334.4 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.1553, allocations: 471.5 kB / 334.9 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1554, allocations: 0 / 334.9 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.635e-05/0.1554, allocations: 19.94 kB / 334.9 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1554, allocations: 23.98 kB / 334.9 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.1558, allocations: 228.5 kB / 335.2 MB, free: 3.023 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.1577, allocations: 1.559 MB / 336.7 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.1579, allocations: 284.8 kB / 337 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.1582, allocations: 326.5 kB / 337.3 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02093/0.1791, allocations: 23.03 MB / 360.3 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.1793, allocations: 217.8 kB / 360.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.734e-06/0.1793, allocations: 0 / 360.6 MB, free: 8.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0004996/0.1798, allocations: 479.2 kB / 361 MB, free: 8.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.1799, allocations: 59.41 kB / 361.1 MB, free: 8.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.1813, allocations: 2.664 MB / 363.7 MB, free: 5.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.1813, allocations: 29.7 kB / 363.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.1817, allocations: 0.7596 MB / 364.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/0.1818, allocations: 174.5 kB / 364.7 MB, free: 4.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.1819, allocations: 194.3 kB / 364.9 MB, free: 4.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.182, allocations: 349.8 kB / 365.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-05/0.1821, allocations: 73.97 kB / 365.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.1823, allocations: 452.2 kB / 365.7 MB, free: 3.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.1828, allocations: 0.6171 MB / 366.4 MB, free: 2.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1828, allocations: 4 kB / 366.4 MB, free: 2.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005843/0.1834, allocations: 0.6968 MB / 367.1 MB, free: 1.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1834, allocations: 14.81 kB / 367.1 MB, free: 1.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.775e-05/0.1834, allocations: 20 kB / 367.1 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1834, allocations: 16 kB / 367.1 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.1838, allocations: 223.8 kB / 367.3 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.1839, allocations: 31.86 kB / 367.4 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003803/0.1842, allocations: 103.3 kB / 367.5 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.1843, allocations: 36 kB / 367.5 MB, free: 1.344 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.0002349/0.1845, allocations: 173.5 kB / 367.7 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.1847, allocations: 247.7 kB / 367.9 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000912/0.1856, allocations: 0.7865 MB / 368.7 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1856, allocations: 4 kB / 368.7 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.1856, allocations: 4 kB / 368.7 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-06/0.1856, allocations: 3.938 kB / 368.7 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.1868, allocations: 1.556 MB / 370.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-05/0.1869, allocations: 8 kB / 370.3 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.1871, allocations: 91.91 kB / 370.4 MB, free: 14.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1871, allocations: 8.062 kB / 370.4 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.1871, allocations: 19.88 kB / 370.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1871, allocations: 4 kB / 370.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1871, allocations: 0 / 370.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005433/0.1877, allocations: 0.6288 MB / 371 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003084/0.188, allocations: 389.2 kB / 371.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.1881, allocations: 16.8 kB / 371.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.1884, allocations: 23.98 kB / 371.4 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.1885, allocations: 39.88 kB / 371.5 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.1886, allocations: 15.98 kB / 371.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008162/0.1894, allocations: 1.413 MB / 372.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1894, allocations: 0 / 372.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006651/0.19, allocations: 0.5969 MB / 373.5 MB, free: 11.24 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.0008045/0.1908, allocations: 0.9317 MB / 374.4 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.1913, allocations: 462.1 kB / 374.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.598e-05/0.1913, allocations: 40.5 kB / 374.9 MB, free: 9.793 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.1915, allocations: 245.2 kB / 375.2 MB, free: 9.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.1927, allocations: 0.6139 MB / 375.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.1958, allocations: 3.985 MB / 379.8 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1961, allocations: 387.9 kB / 380.1 MB, free: 4.473 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005435/0.1966, allocations: 357.1 kB / 380.5 MB, free: 4.117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007299/0.1973, allocations: 0.5733 MB / 381.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1973, allocations: 0 / 381.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of Templates: time 0.04879/0.2461, allocations: 37.4 MB / 418.5 MB, free: 14.63 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.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.345366147812456]