Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.0009905/0.0009905, allocations: 80.41 kB / 22.21 MB, free: 2.285 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.000975/0.000975, allocations: 169.8 kB / 25.61 MB, free: 8.902 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.8986/0.8986, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 274.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.366e-05/2.526e-05, allocations: 2.312 kB / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003628/0.003653, allocations: 1.924 MB / 276.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.004951, allocations: 1.2 MB / 277.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.966e-05/0.00503, allocations: 8 kB / 277.3 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008027/0.005833, allocations: 0.4904 MB / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.005989, allocations: 199.3 kB / 278 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.006289, allocations: 159.2 kB / 278.1 MB, free: 480 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.006536, allocations: 235 kB / 278.4 MB, free: 244 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.931e-05/0.006605, allocations: 5.812 kB / 278.4 MB, free: 236 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.006795, allocations: 155.6 kB / 278.5 MB, free: 80 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.007001, allocations: 215.6 kB / 278.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.007019, allocations: 4 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.007132, allocations: 63.89 kB / 278.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.007279, allocations: 267.3 kB / 279.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.007387, allocations: 139.5 kB / 279.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.007809, allocations: 0.5058 MB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.007812, allocations: 4 kB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.007814, allocations: 0 / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.007822, allocations: 0 / 279.7 MB, free: 14.89 MB / 266.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.001549/0.009371, allocations: 1.269 MB / 281 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.009402, allocations: 12.03 kB / 281 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.009547, allocations: 92.33 kB / 281.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.009991, allocations: 482.2 kB / 281.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.01001, allocations: 384 / 281.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.01002, allocations: 4.375 kB / 281.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.01017, allocations: 74.84 kB / 281.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.01018, allocations: 4.188 kB / 281.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.01019, allocations: 384 / 281.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.0102, allocations: 3.938 kB / 281.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.06e-05/0.01026, allocations: 19.98 kB / 281.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.01087, allocations: 0.5398 MB / 282.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.01102, allocations: 51.05 kB / 282.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.185e-05/0.01105, allocations: 23.73 kB / 282.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.01106, allocations: 0 / 282.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.01108, allocations: 37.38 kB / 282.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.01108, allocations: 0 / 282.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002908/0.01138, allocations: 161 kB / 282.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.01141, allocations: 55.41 kB / 282.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008135/0.01222, allocations: 1.099 MB / 283.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.01224, allocations: 29.7 kB / 283.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.01255, allocations: 0.5071 MB / 284.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.01257, allocations: 15.83 kB / 284.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.01262, allocations: 27.36 kB / 284.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.01273, allocations: 484.4 kB / 284.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.827e-05/0.01276, allocations: 11.98 kB / 284.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.376e-05/0.01278, allocations: 4 kB / 284.7 MB, free: 9.707 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.09e-05/0.01284, allocations: 27.67 kB / 284.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.01284, allocations: 7.938 kB / 284.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002069/0.01305, allocations: 145.1 kB / 284.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.01307, allocations: 4 kB / 284.9 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.01307, allocations: 3.938 kB / 284.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/0.01308, allocations: 4 kB / 284.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.01318, allocations: 8 kB / 284.9 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.01319, allocations: 3.984 kB / 284.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.01326, allocations: 7.953 kB / 284.9 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.01327, allocations: 0 / 284.9 MB, free: 9.488 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 0.0001047/0.01337, allocations: 160.6 kB / 285 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.01349, allocations: 99.36 kB / 285.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.01371, allocations: 157.7 kB / 285.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.01371, allocations: 0 / 285.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.01371, allocations: 0 / 285.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01372, allocations: 8 kB / 285.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003152/0.01403, allocations: 369.7 kB / 285.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.01404, allocations: 0 / 285.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.102e-05/0.01408, allocations: 11.98 kB / 285.7 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01408, allocations: 4 kB / 285.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.01409, allocations: 0 / 285.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.01409, allocations: 0 / 285.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01409, allocations: 3.938 kB / 285.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.0143, allocations: 296 kB / 286 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.01442, allocations: 111.4 kB / 286.1 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.01446, allocations: 3.984 kB / 286.1 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.01454, allocations: 8 kB / 286.1 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.01457, allocations: 11.92 kB / 286.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.01457, allocations: 4 kB / 286.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004228/0.015, allocations: 0.603 MB / 286.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.015, allocations: 0 / 286.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.01522, allocations: 71.89 kB / 286.8 MB, free: 7.516 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.0001337/0.01536, allocations: 111.2 kB / 286.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.419e-05/0.01545, allocations: 31.67 kB / 286.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.01545, allocations: 0 / 286.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.883e-05/0.01549, allocations: 19.62 kB / 286.9 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.01586, allocations: 112.4 kB / 287.1 MB, free: 7.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.01709, allocations: 1.097 MB / 288.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.01723, allocations: 204.9 kB / 288.3 MB, free: 5.871 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003224/0.01755, allocations: 374.2 kB / 288.7 MB, free: 5.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.01775, allocations: 162.2 kB / 288.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01775, allocations: 0 / 288.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of Templates: time 0.01061/0.02836, allocations: 8.577 MB / 297.5 MB, free: 12.86 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.7153513599187136]