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.0009459/0.0009459, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001436/0.002382, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0008589/0.0008589, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001342/0.002201, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9335/0.9335, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1802/1.114, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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 1.192e-06/1.192e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.157e-05, allocations: 6.312 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002407/0.002429, allocations: 1.968 MB / 241.7 MB, free: 4.406 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.003555, allocations: 1.215 MB / 242.9 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.754e-05/0.003633, allocations: 0.6875 kB / 242.9 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007137/0.004346, allocations: 0.5202 MB / 243.4 MB, free: 2.672 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.004508, allocations: 196.8 kB / 243.6 MB, free: 2.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.004813, allocations: 171.2 kB / 243.8 MB, free: 2.312 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.005078, allocations: 231.8 kB / 244 MB, free: 2.086 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.597e-05/0.005154, allocations: 10.47 kB / 244 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.005402, allocations: 202.8 kB / 244.2 MB, free: 1.875 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.005618, allocations: 183.7 kB / 244.4 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.005638, allocations: 8 kB / 244.4 MB, free: 1.688 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.005771, allocations: 71.02 kB / 244.5 MB, free: 1.621 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.005912, allocations: 263.3 kB / 244.7 MB, free: 1.359 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.577e-05/0.005998, allocations: 99.5 kB / 244.8 MB, free: 1.262 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005543/0.006552, allocations: 0.4942 MB / 245.3 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.006562, allocations: 0 / 245.3 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.006564, allocations: 4 kB / 245.3 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.006582, allocations: 0 / 245.3 MB, free: 0.7617 MB / 234.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.001469/0.008051, allocations: 1.229 MB / 246.6 MB, free: 15.49 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.008088, allocations: 8.031 kB / 246.6 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.008213, allocations: 49.78 kB / 246.6 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.00862, allocations: 449.3 kB / 247.1 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.008641, allocations: 4.375 kB / 247.1 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.008657, allocations: 4.375 kB / 247.1 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.008821, allocations: 70.89 kB / 247.1 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.008829, allocations: 4.781 kB / 247.1 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.008841, allocations: 4.375 kB / 247.2 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.008847, allocations: 4.625 kB / 247.2 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.384e-05/0.008901, allocations: 15.98 kB / 247.2 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003945/0.009295, allocations: 226.2 kB / 247.4 MB, free: 14.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.00942, allocations: 38.56 kB / 247.4 MB, free: 14.56 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.626e-05/0.009446, allocations: 12.86 kB / 247.4 MB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.009459, allocations: 0 / 247.4 MB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.009482, allocations: 39.95 kB / 247.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.009483, allocations: 0 / 247.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002321/0.009715, allocations: 105.5 kB / 247.6 MB, free: 14.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.009744, allocations: 55.41 kB / 247.6 MB, free: 14.32 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004905/0.01023, allocations: 0.7395 MB / 248.4 MB, free: 13.57 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.01025, allocations: 26.55 kB / 248.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.01035, allocations: 198.5 kB / 248.6 MB, free: 13.34 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.01038, allocations: 17.47 kB / 248.6 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.01042, allocations: 17.7 kB / 248.6 MB, free: 13.3 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.0105, allocations: 314 kB / 248.9 MB, free: 12.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.357e-05/0.01053, allocations: 7.938 kB / 248.9 MB, free: 12.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.252e-05/0.01055, allocations: 12.17 kB / 249 MB, free: 12.96 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.423e-05/0.01061, allocations: 28.78 kB / 249 MB, free: 12.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01061, allocations: 0 / 249 MB, free: 12.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000154/0.01076, allocations: 93.61 kB / 249.1 MB, free: 12.84 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.01078, allocations: 4 kB / 249.1 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.01078, allocations: 0 / 249.1 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.01079, allocations: 3.938 kB / 249.1 MB, free: 12.83 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.0109, allocations: 19.98 kB / 249.1 MB, free: 12.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.01091, allocations: 0 / 249.1 MB, free: 12.81 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.985e-05/0.01098, allocations: 7.984 kB / 249.1 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.01099, allocations: 0 / 249.1 MB, free: 12.8 MB / 250.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.434e-05/0.01108, allocations: 116.6 kB / 249.2 MB, free: 12.68 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.52e-05/0.01117, allocations: 51.94 kB / 249.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002154/0.01138, allocations: 185.4 kB / 249.5 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.01139, allocations: 7.938 kB / 249.5 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.01139, allocations: 0 / 249.5 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01139, allocations: 4.172 kB / 249.5 MB, free: 12.43 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.01169, allocations: 341.2 kB / 249.8 MB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.0117, allocations: 3.984 kB / 249.8 MB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.595e-05/0.01174, allocations: 11.98 kB / 249.8 MB, free: 12.06 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.01186, allocations: 111.3 kB / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.01186, allocations: 0 / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-06/0.01187, allocations: 0 / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.01187, allocations: 3.938 kB / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01187, allocations: 0 / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.01205, allocations: 246.7 kB / 250.2 MB, free: 11.69 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.01208, allocations: 0 / 250.2 MB, free: 11.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.594e-05/0.01217, allocations: 11.98 kB / 250.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.0122, allocations: 3.938 kB / 250.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.01221, allocations: 4 kB / 250.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002877/0.01249, allocations: 387.7 kB / 250.6 MB, free: 11.28 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01249, allocations: 0 / 250.6 MB, free: 11.28 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01267, allocations: 67.94 kB / 250.6 MB, free: 11.21 MB / 250.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.0001511/0.01283, allocations: 100.3 kB / 250.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.904e-05/0.01291, allocations: 24.84 kB / 250.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.01293, allocations: 12 kB / 250.8 MB, free: 11.06 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.603e-05/0.01297, allocations: 24.78 kB / 250.8 MB, free: 11.04 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005585/0.01353, allocations: 0.8218 MB / 251.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.01586, allocations: 1.101 MB / 252.7 MB, free: 8.934 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001355/0.01599, allocations: 197.2 kB / 252.9 MB, free: 8.719 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003007/0.01629, allocations: 382.1 kB / 253.3 MB, free: 8.34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.0165, allocations: 139.3 kB / 253.4 MB, free: 8.203 MB / 250.7 MB Notification: Performance of SimCode: time 1.423e-06/0.0165, allocations: 0 / 253.4 MB, free: 8.203 MB / 250.7 MB Notification: Performance of Templates: time 0.01067/0.02717, allocations: 8.586 MB / 262 MB, free: 15.76 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5615357477217913]