Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001793/0.001793, allocations: 117.2 kB / 18.5 MB, free: 4.543 MB / 14.72 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.002566/0.002566, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 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 1.671/1.671, allocations: 230.2 MB / 254.5 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] 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.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002623/0.002623, allocations: 71.89 kB / 373.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1463, allocations: 53.32 MB / 427.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00406/0.1503, allocations: 1.924 MB / 429.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.1524, allocations: 1.257 MB / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.1525, allocations: 0 / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1537, allocations: 0.5063 MB / 430.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002935/0.154, allocations: 195.4 kB / 431 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.1545, allocations: 167.3 kB / 431.2 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.1548, allocations: 223.1 kB / 431.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.155, allocations: 25.66 kB / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.1553, allocations: 115.6 kB / 431.5 MB, free: 104 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003143/0.1556, allocations: 239.4 kB / 431.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.1556, allocations: 4 kB / 431.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1558, allocations: 63.95 kB / 431.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.156, allocations: 259.3 kB / 432.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.1563, allocations: 281.9 kB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008524/0.1571, allocations: 0.7738 MB / 433.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1571, allocations: 0 / 433.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.1571, allocations: 4 kB / 433.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1571, allocations: 0 / 433.1 MB, free: 14.49 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002626/0.1598, allocations: 1.213 MB / 434.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1598, allocations: 8.031 kB / 434.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.16, allocations: 92.33 kB / 434.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.1613, allocations: 0.7557 MB / 435.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1613, allocations: 384 / 435.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.1613, allocations: 4.375 kB / 435.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.1616, allocations: 125.9 kB / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1616, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.1616, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1617, allocations: 0 / 435.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003908/0.162, allocations: 147.8 kB / 435.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.1631, allocations: 0.8182 MB / 436.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.1633, allocations: 86.52 kB / 436.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.1635, allocations: 76.84 kB / 436.5 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.1635, allocations: 3.938 kB / 436.5 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1636, allocations: 34.5 kB / 436.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1636, allocations: 0 / 436.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008792/0.1644, allocations: 332.9 kB / 436.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.1645, allocations: 55.41 kB / 436.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.1662, allocations: 1.401 MB / 438.3 MB, free: 9.133 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1662, allocations: 25.7 kB / 438.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.1666, allocations: 388.4 kB / 438.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.1666, allocations: 3.953 kB / 438.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.1667, allocations: 25.7 kB / 438.7 MB, free: 8.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1668, allocations: 310 kB / 439 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.167, allocations: 67.94 kB / 439.1 MB, free: 8.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.1672, allocations: 86.52 kB / 439.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.1676, allocations: 166.3 kB / 439.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1676, allocations: 0 / 439.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006118/0.1682, allocations: 261 kB / 439.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1682, allocations: 7.984 kB / 439.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1682, allocations: 0 / 439.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.1682, allocations: 0 / 439.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.1684, allocations: 24.08 kB / 439.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1684, allocations: 3.938 kB / 439.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1686, allocations: 11.95 kB / 439.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.1686, allocations: 3.984 kB / 439.6 MB, free: 7.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0003674/0.169, allocations: 341.6 kB / 440 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.1692, allocations: 91.42 kB / 440 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000641/0.1698, allocations: 277.5 kB / 440.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1698, allocations: 0 / 440.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1698, allocations: 0 / 440.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1699, allocations: 0 / 440.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.1704, allocations: 0.5143 MB / 440.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1704, allocations: 4 kB / 440.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.906e-05/0.1705, allocations: 11.98 kB / 440.8 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1705, allocations: 3.938 kB / 440.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1705, allocations: 0 / 440.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1705, allocations: 0 / 440.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1705, allocations: 3.984 kB / 440.9 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005447/0.1711, allocations: 335.2 kB / 441.2 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.1714, allocations: 224.5 kB / 441.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.736e-05/0.1714, allocations: 3.984 kB / 441.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.1716, allocations: 8 kB / 441.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.1717, allocations: 7.984 kB / 441.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1717, allocations: 3.938 kB / 441.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001362/0.1731, allocations: 1.013 MB / 442.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1731, allocations: 0 / 442.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003348/0.1734, allocations: 60 kB / 442.5 MB, free: 4.738 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * 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.0002137/0.1736, allocations: 123.2 kB / 442.6 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004057/0.174, allocations: 119.8 kB / 442.7 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.174, allocations: 0 / 442.7 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.1742, allocations: 56.14 kB / 442.8 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005803/0.1748, allocations: 102.3 kB / 442.9 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.1767, allocations: 1.379 MB / 444.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007378/0.1774, allocations: 1.001 MB / 445.3 MB, free: 1.898 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006317/0.1781, allocations: 474.1 kB / 445.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.1782, allocations: 43.36 kB / 445.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1782, allocations: 0 / 445.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of Templates: time 0.2612/0.4394, allocations: 7.485 MB / 453.3 MB, free: 24.01 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.187129568308592]