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.002585/0.002585, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001961/0.001961, allocations: 153.5 kB / 24.27 MB, free: 168 kB / 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 1.55/1.55, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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 1.533e-06/1.533e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.194e-05/3.347e-05, allocations: 2.312 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003666/0.003699, allocations: 1.901 MB / 269.2 MB, free: 4.844 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.005821, allocations: 1.187 MB / 270.4 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.32e-05/0.005914, allocations: 0 / 270.4 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.007076, allocations: 0.4982 MB / 270.9 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.007349, allocations: 199.3 kB / 271.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.007815, allocations: 167.2 kB / 271.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.008186, allocations: 231 kB / 271.5 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.358e-05/0.008269, allocations: 9.812 kB / 271.5 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.008526, allocations: 151.6 kB / 271.6 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003478/0.008874, allocations: 215.6 kB / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.008916, allocations: 8 kB / 271.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.009086, allocations: 63.89 kB / 271.9 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002676/0.009353, allocations: 263.3 kB / 272.2 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.009554, allocations: 135.5 kB / 272.3 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009843/0.01054, allocations: 0.7357 MB / 273 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.01054, allocations: 0 / 273 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.01054, allocations: 0 / 273 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.01055, allocations: 4 kB / 273 MB, free: 0.9883 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.002964/0.01352, allocations: 1.303 MB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.01356, allocations: 8.922 kB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.0138, allocations: 104.2 kB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.01489, allocations: 0.5296 MB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.01491, allocations: 384 / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.01493, allocations: 4.375 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.01521, allocations: 118.1 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.01522, allocations: 192 / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.01524, allocations: 384 / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.01525, allocations: 3.938 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.01557, allocations: 131.9 kB / 275.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.0173, allocations: 0.8487 MB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.01779, allocations: 206.9 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.01796, allocations: 79.62 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.01798, allocations: 7.984 kB / 276.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.01802, allocations: 37.33 kB / 276.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.01802, allocations: 0 / 276.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0007906/0.01881, allocations: 313 kB / 276.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.01886, allocations: 59.39 kB / 276.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/0.02061, allocations: 1.216 MB / 278 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.02064, allocations: 25.7 kB / 278 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005826/0.02122, allocations: 0.5229 MB / 278.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.02125, allocations: 15.84 kB / 278.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.02133, allocations: 23.36 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000268/0.0216, allocations: 492.4 kB / 279 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.02176, allocations: 63.89 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.0219, allocations: 67.94 kB / 279.2 MB, free: 10.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.0222, allocations: 135.6 kB / 279.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.0222, allocations: 0 / 279.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000563/0.02276, allocations: 257 kB / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.02278, allocations: 15.88 kB / 279.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.02279, allocations: 0 / 279.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.0228, allocations: 0 / 279.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.02297, allocations: 11.98 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.02298, allocations: 3.938 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.02315, allocations: 7.984 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.02317, allocations: 4 kB / 279.6 MB, free: 10.19 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.0001939/0.02336, allocations: 176.6 kB / 279.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.02356, allocations: 99.31 kB / 279.9 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000561/0.02413, allocations: 229.8 kB / 280.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.02413, allocations: 0 / 280.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.02413, allocations: 0 / 280.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.02414, allocations: 3.984 kB / 280.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008471/0.02499, allocations: 0.5918 MB / 280.7 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.02499, allocations: 0 / 280.7 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.115e-05/0.02506, allocations: 11.98 kB / 280.7 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.02507, allocations: 0 / 280.7 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.02508, allocations: 3.938 kB / 280.7 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.02509, allocations: 4 kB / 280.7 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.02509, allocations: 3.938 kB / 280.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.02564, allocations: 360.1 kB / 281.1 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.02607, allocations: 143.4 kB / 281.2 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-05/0.02614, allocations: 3.938 kB / 281.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.02631, allocations: 8 kB / 281.2 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.02638, allocations: 3.984 kB / 281.2 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.02639, allocations: 4 kB / 281.2 MB, free: 8.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001116/0.02751, allocations: 0.7125 MB / 281.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02751, allocations: 0 / 281.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003401/0.02785, allocations: 63.94 kB / 282 MB, free: 7.707 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.0002259/0.02808, allocations: 107.2 kB / 282.1 MB, free: 7.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003742/0.02845, allocations: 127.5 kB / 282.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.02845, allocations: 0 / 282.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.02862, allocations: 55.66 kB / 282.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.02923, allocations: 112.1 kB / 282.4 MB, free: 7.289 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.03121, allocations: 1.144 MB / 283.5 MB, free: 6.113 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.03168, allocations: 368.1 kB / 283.9 MB, free: 5.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006724/0.03236, allocations: 434.4 kB / 284.3 MB, free: 5.301 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.03248, allocations: 36.5 kB / 284.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.03248, allocations: 0 / 284.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of Templates: time 0.1214/0.1539, allocations: 7.981 MB / 292.3 MB, free: 29.59 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.72254523599986]