Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008848/0.0008848, allocations: 85.17 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009202/0.0009202, allocations: 143.4 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9/0.9, allocations: 173.4 MB / 201.5 MB, free: 8.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.226e-06/3.226e-06, allocations: 3.984 kB / 268.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.905e-05, allocations: 6.25 kB / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003706/0.003725, allocations: 1.923 MB / 270.4 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.005698, allocations: 1.199 MB / 271.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.696e-05/0.005795, allocations: 7.938 kB / 271.6 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.007006, allocations: 0.4943 MB / 272.1 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.007304, allocations: 199.3 kB / 272.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.007771, allocations: 171.2 kB / 272.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.008168, allocations: 234.6 kB / 272.7 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.583e-05/0.008254, allocations: 10.47 kB / 272.7 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002728/0.008526, allocations: 151.5 kB / 272.8 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003193/0.008846, allocations: 187.7 kB / 273 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.008872, allocations: 4 kB / 273 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.00905, allocations: 63.84 kB / 273.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.0093, allocations: 267.3 kB / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.009514, allocations: 135.5 kB / 273.5 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006859/0.0102, allocations: 0.5097 MB / 274 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.0102, allocations: 0 / 274 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.0102, allocations: 4 kB / 274 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.964e-06/0.01021, allocations: 0 / 274 MB, free: 0.5039 MB / 250.7 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.002288/0.0125, allocations: 1.042 MB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.01254, allocations: 8.922 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.01274, allocations: 52.86 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006984/0.01344, allocations: 447.5 kB / 275.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.01346, allocations: 4.375 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.01349, allocations: 4.375 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.01372, allocations: 70.91 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.01373, allocations: 192 / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.01374, allocations: 4.359 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.01374, allocations: 3.938 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.741e-05/0.0138, allocations: 23.92 kB / 275.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003627/0.01416, allocations: 232.2 kB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.01428, allocations: 34.56 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.792e-05/0.0143, allocations: 16.86 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.01431, allocations: 4 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.01433, allocations: 30.56 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.01433, allocations: 0 / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002214/0.01455, allocations: 109.5 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.01458, allocations: 51.41 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.01511, allocations: 0.7468 MB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.01512, allocations: 25.7 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.01522, allocations: 194.5 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.01525, allocations: 11.84 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.01529, allocations: 21.7 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/0.01536, allocations: 314 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.426e-05/0.01538, allocations: 7.984 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.032e-05/0.0154, allocations: 4 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.93e-05/0.01545, allocations: 24.78 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.01545, allocations: 0 / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001451/0.0156, allocations: 97.61 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.729e-06/0.01561, allocations: 4 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.01561, allocations: 0 / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.01562, allocations: 7.938 kB / 277.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.204e-05/0.0157, allocations: 11.98 kB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-06/0.0157, allocations: 8 kB / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.283e-05/0.01578, allocations: 7.984 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.01578, allocations: 0 / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 9.113e-05/0.01588, allocations: 112.7 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.3e-05/0.01596, allocations: 47.94 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001997/0.01616, allocations: 197.7 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.01616, allocations: 7.938 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.01616, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01617, allocations: 3.984 kB / 277.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.01646, allocations: 337.2 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.01646, allocations: 0 / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.382e-05/0.01649, allocations: 15.98 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.01649, allocations: 0 / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.0165, allocations: 0 / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.0165, allocations: 0 / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.0165, allocations: 4 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.01667, allocations: 246.6 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.01678, allocations: 107.3 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.01682, allocations: 4 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.728e-05/0.0169, allocations: 0 / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-05/0.01693, allocations: 11.92 kB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.01693, allocations: 0 / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003007/0.01723, allocations: 395.7 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01723, allocations: 0 / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.01742, allocations: 63.94 kB / 279.1 MB, free: 11.14 MB / 266.7 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.0001128/0.01753, allocations: 92.41 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.863e-05/0.01761, allocations: 24.84 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.719e-06/0.01762, allocations: 11.94 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.01766, allocations: 16.84 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.01795, allocations: 106.1 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.01907, allocations: 1.109 MB / 280.4 MB, free: 9.734 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.01919, allocations: 193.2 kB / 280.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003032/0.0195, allocations: 374.2 kB / 281 MB, free: 9.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.0197, allocations: 147.3 kB / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.0197, allocations: 0 / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of Templates: time 0.01208/0.03178, allocations: 8.423 MB / 289.6 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.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: 2.689351508859545]