Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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.0009807/0.0009807, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001067/0.001067, allocations: 171.2 kB / 24.92 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9079/0.9079, allocations: 177.1 MB / 205.3 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1486/0.1486, allocations: 34.25 MB / 296.1 MB, free: 13.98 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.667e-06/3.667e-06, allocations: 3.984 kB / 325.2 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.438e-06/1.311e-05, allocations: 2.312 kB / 325.2 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.005705/0.005719, allocations: 7.354 MB / 332.6 MB, free: 9.383 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.009466, allocations: 2.446 MB / 335 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.009888, allocations: 27.94 kB / 335.1 MB, free: 6.902 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.0119, allocations: 1.932 MB / 337 MB, free: 4.961 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001105/0.01301, allocations: 0.722 MB / 337.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.0143, allocations: 1.051 MB / 338.8 MB, free: 3.18 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.01546, allocations: 1.471 MB / 340.2 MB, free: 1.703 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008566/0.01632, allocations: 0.9691 MB / 341.2 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1246/0.1409, allocations: 0.8641 MB / 342.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.142, allocations: 0.58 MB / 342.7 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003146/0.1423, allocations: 111.6 kB / 342.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007455/0.143, allocations: 325.2 kB / 343.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.1432, allocations: 306.4 kB / 343.4 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005196/0.1437, allocations: 459.8 kB / 343.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.1453, allocations: 1.234 MB / 345.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1453, allocations: 1.156 kB / 345.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1453, allocations: 0 / 345.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.767e-05/0.1453, allocations: 0 / 345.1 MB, free: 20.73 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: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.004333/0.1496, allocations: 2.512 MB / 347.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.1497, allocations: 10.19 kB / 347.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005078/0.1547, allocations: 1.84 MB / 349.4 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.1554, allocations: 375.4 kB / 349.8 MB, free: 19.81 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.929e-05/0.1554, allocations: 102.3 kB / 349.9 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.1556, allocations: 131.4 kB / 350 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1566, allocations: 1.152 MB / 351.2 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.1566, allocations: 11.05 kB / 351.2 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.339e-05/0.1567, allocations: 52.06 kB / 351.2 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.1567, allocations: 41.97 kB / 351.3 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.1574, allocations: 0.6264 MB / 351.9 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.1606, allocations: 3.433 MB / 355.3 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006889/0.1613, allocations: 0.8526 MB / 356.2 MB, free: 17.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.1615, allocations: 271.2 kB / 356.5 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.167e-05/0.1616, allocations: 45.22 kB / 356.5 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.1617, allocations: 57.59 kB / 356.6 MB, free: 17.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=127): time 2.245e-06/0.1617, allocations: 4 kB / 356.6 MB, free: 17.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=127): time 0.003259/0.1649, allocations: 2.044 MB / 358.6 MB, free: 16.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/0.1649, allocations: 93.86 kB / 358.7 MB, free: 16.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.1651, allocations: 389 kB / 359.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.1651, allocations: 45.7 kB / 359.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.1652, allocations: 454.4 kB / 359.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1654, allocations: 441.8 kB / 360 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.1655, allocations: 223.3 kB / 360.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.3e-05/0.1656, allocations: 386.1 kB / 360.6 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1658, allocations: 165.4 kB / 360.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.166, allocations: 422.2 kB / 361.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000475/0.1665, allocations: 0.6951 MB / 361.9 MB, free: 13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1665, allocations: 1.312 kB / 361.9 MB, free: 13 MB / 314.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.0007688/0.1672, allocations: 0.8416 MB / 362.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1673, allocations: 8 kB / 362.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.1673, allocations: 8 kB / 362.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000611/0.1679, allocations: 396.3 kB / 363.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003327/0.1682, allocations: 190.2 kB / 363.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.228e-05/0.1683, allocations: 60.59 kB / 363.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1685, allocations: 115.2 kB / 363.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.92e-05/0.1686, allocations: 35.98 kB / 363.5 MB, free: 11.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.1687, allocations: 180 kB / 363.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.512e-05/0.1688, allocations: 91.86 kB / 363.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007219/0.1696, allocations: 0.8284 MB / 364.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1696, allocations: 19.17 kB / 364.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1696, allocations: 3.469 kB / 364.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.1696, allocations: 8 kB / 364.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.1709, allocations: 1.457 MB / 366.1 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.171, allocations: 3.938 kB / 366.1 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.1712, allocations: 142.3 kB / 366.2 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005709/0.1718, allocations: 374.6 kB / 366.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/0.1718, allocations: 29.92 kB / 366.6 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001145/0.1719, allocations: 64.78 kB / 366.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1719, allocations: 0 / 366.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.173, allocations: 1.222 MB / 367.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.1732, allocations: 126.9 kB / 368 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.1732, allocations: 20 kB / 368 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.1734, allocations: 44.02 kB / 368.1 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.1735, allocations: 85.14 kB / 368.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.1736, allocations: 20 kB / 368.2 MB, free: 6.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.793e-05/0.1736, allocations: 155.8 kB / 368.3 MB, free: 6.777 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1736, allocations: 3.469 kB / 368.3 MB, free: 6.777 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.1741, allocations: 351.2 kB / 368.7 MB, free: 6.434 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001852/0.1743, allocations: 158.7 kB / 368.8 MB, free: 6.289 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008418/0.1752, allocations: 0.766 MB / 369.6 MB, free: 5.559 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.1752, allocations: 8.5 kB / 369.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.1757, allocations: 472.7 kB / 370.1 MB, free: 5.113 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.176, allocations: 115.2 kB / 370.2 MB, free: 5.012 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.1778, allocations: 1.833 MB / 372 MB, free: 3.191 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.064e-05/0.1779, allocations: 199.2 kB / 372.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002221/0.1781, allocations: 110.4 kB / 372.3 MB, free: 2.863 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.1784, allocations: 175.3 kB / 372.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1784, allocations: 0 / 372.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of Templates: time 0.01878/0.1971, allocations: 13.07 MB / 385.6 MB, free: 5.871 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.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.2754809469915926]