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.0009091/0.0009091, allocations: 83.67 kB / 21.7 MB, free: 2.848 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.001266/0.001266, allocations: 161.7 kB / 24.99 MB, free: 9.234 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.9158/0.9158, allocations: 177 MB / 205.2 MB, free: 5.598 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.483e-06/1.483e-06, allocations: 0 / 273 MB, free: 1.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.633e-05/1.781e-05, allocations: 2.312 kB / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009454/0.009472, allocations: 14.01 MB / 287 MB, free: 3.703 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1142/0.1236, allocations: 19.75 MB / 306.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.1248, allocations: 136.5 kB / 306.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.1267, allocations: 1.137 MB / 308 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.1308, allocations: 2.43 MB / 310.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.1335, allocations: 1.449 MB / 311.9 MB, free: 7.191 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005202/0.1387, allocations: 6.778 MB / 318.7 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004512/0.1391, allocations: 259.7 kB / 318.9 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.1403, allocations: 1.576 MB / 320.5 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005709/0.1409, allocations: 0.7862 MB / 321.3 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.305e-05/0.1409, allocations: 72 kB / 321.3 MB, free: 1.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.1426, allocations: 1.213 MB / 322.6 MB, free: 56 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.1428, allocations: 331.4 kB / 322.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005931/0.1433, allocations: 0.7436 MB / 323.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.1457, allocations: 2.797 MB / 326.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1457, allocations: 0 / 326.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1457, allocations: 3.984 kB / 326.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.748e-05/0.1457, allocations: 0 / 326.4 MB, free: 12.17 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.003319/0.1491, allocations: 3.925 MB / 330.4 MB, free: 8.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1491, allocations: 11.98 kB / 330.4 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003833/0.1495, allocations: 453.4 kB / 330.8 MB, free: 7.723 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/0.1517, allocations: 2.583 MB / 333.4 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1517, allocations: 37 kB / 333.4 MB, free: 5.004 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.934e-05/0.1518, allocations: 55.95 kB / 333.5 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007116/0.1525, allocations: 0.5358 MB / 334 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1525, allocations: 0 / 334 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.1526, allocations: 24.5 kB / 334 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.1526, allocations: 19.98 kB / 334.1 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006151/0.1532, allocations: 494.3 kB / 334.5 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.1564, allocations: 2.859 MB / 337.4 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.1568, allocations: 325.4 kB / 337.7 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.1572, allocations: 419.4 kB / 338.1 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01479/0.172, allocations: 15.23 MB / 353.4 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000314/0.1723, allocations: 275.7 kB / 353.6 MB, free: 324 kB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.633e-06/0.1723, allocations: 0 / 353.6 MB, free: 324 kB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009403/0.1732, allocations: 0.8621 MB / 354.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1733, allocations: 67.34 kB / 354.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/0.1757, allocations: 3.173 MB / 357.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.517e-05/0.1757, allocations: 33.7 kB / 357.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.1768, allocations: 1.67 MB / 359.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.1769, allocations: 174.6 kB / 359.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.1771, allocations: 236 kB / 359.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1772, allocations: 0.5121 MB / 360.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1774, allocations: 129.9 kB / 360.5 MB, free: 9.395 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004088/0.1778, allocations: 0.6549 MB / 361.1 MB, free: 8.496 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.1785, allocations: 0.854 MB / 362 MB, free: 7.402 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.1785, allocations: 4 kB / 362 MB, free: 7.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009548/0.1794, allocations: 1.076 MB / 363.1 MB, free: 6.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1794, allocations: 8.625 kB / 363.1 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-05/0.1795, allocations: 83.98 kB / 363.1 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.1795, allocations: 20.81 kB / 363.2 MB, free: 6.211 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003946/0.1799, allocations: 208.3 kB / 363.4 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.1799, allocations: 27.86 kB / 363.4 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.1804, allocations: 103.3 kB / 363.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.1804, allocations: 64 kB / 363.6 MB, free: 5.816 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.0003229/0.1807, allocations: 216.2 kB / 363.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002376/0.181, allocations: 417.5 kB / 364.2 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.1823, allocations: 1.014 MB / 365.2 MB, free: 4.168 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1824, allocations: 4 kB / 365.2 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1824, allocations: 6.312 kB / 365.2 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1824, allocations: 3.984 kB / 365.2 MB, free: 4.156 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.1842, allocations: 2.086 MB / 367.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-05/0.1843, allocations: 68 kB / 367.4 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1847, allocations: 95.8 kB / 367.5 MB, free: 1.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1847, allocations: 0 / 367.5 MB, free: 1.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.1847, allocations: 35.94 kB / 367.5 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1847, allocations: 8.062 kB / 367.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1847, allocations: 3.938 kB / 367.5 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.1861, allocations: 1.078 MB / 368.6 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005482/0.1866, allocations: 427.2 kB / 369 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.1869, allocations: 15.94 kB / 369 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005748/0.1875, allocations: 27.95 kB / 369 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.1876, allocations: 59.94 kB / 369.1 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.946e-05/0.1877, allocations: 39.98 kB / 369.1 MB, free: 136 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002079/0.1898, allocations: 1.727 MB / 370.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1898, allocations: 0 / 370.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001213/0.191, allocations: 0.593 MB / 371.5 MB, free: 13.81 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.001098/0.1921, allocations: 0.838 MB / 372.3 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000817/0.1929, allocations: 0.6224 MB / 372.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1929, allocations: 0 / 372.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.1932, allocations: 344.4 kB / 373.3 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.1947, allocations: 0.6396 MB / 373.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/0.1983, allocations: 4.136 MB / 378 MB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.1985, allocations: 383.9 kB / 378.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005746/0.1991, allocations: 353.2 kB / 378.8 MB, free: 6.367 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.1992, allocations: 148.5 kB / 378.9 MB, free: 6.223 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1992, allocations: 4 kB / 378.9 MB, free: 6.219 MB / 330.7 MB Notification: Performance of Templates: time 0.03472/0.234, allocations: 32.6 MB / 411.5 MB, free: 6.098 MB / 362.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 -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.428812223020941]