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.0009296/0.0009296, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001253/0.002182, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009462/0.0009462, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001263/0.002209, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9861/0.9861, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08888/1.075, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.613e-06/1.613e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.427e-05/2.588e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.006268/0.006294, allocations: 1.996 MB / 246.5 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.007942, allocations: 1.226 MB / 247.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.008047, allocations: 7.938 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004053/0.0121, allocations: 0.5062 MB / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002579/0.01236, allocations: 207.3 kB / 248.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.01277, allocations: 159.2 kB / 248.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.01311, allocations: 235 kB / 248.8 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.211e-05/0.01319, allocations: 14.45 kB / 248.8 MB, free: 9.98 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003267/0.01351, allocations: 201.7 kB / 249 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002207/0.01374, allocations: 183.7 kB / 249.2 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.01376, allocations: 11.94 kB / 249.2 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.01392, allocations: 67.89 kB / 249.3 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.01409, allocations: 263.3 kB / 249.6 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.01421, allocations: 99.5 kB / 249.6 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003613/0.01782, allocations: 0.4942 MB / 250.1 MB, free: 8.676 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-05/0.01783, allocations: 0 / 250.1 MB, free: 8.676 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01784, allocations: 0 / 250.1 MB, free: 8.676 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.051e-05/0.01786, allocations: 4 kB / 250.1 MB, free: 8.672 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.001895/0.01975, allocations: 1.215 MB / 251.4 MB, free: 7.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.0198, allocations: 8.031 kB / 251.4 MB, free: 7.402 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.01997, allocations: 48.88 kB / 251.4 MB, free: 7.355 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003543/0.02351, allocations: 459.4 kB / 251.9 MB, free: 6.867 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.02353, allocations: 4.375 kB / 251.9 MB, free: 6.863 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.02354, allocations: 4.375 kB / 251.9 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.02373, allocations: 70.91 kB / 251.9 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.02374, allocations: 4.125 kB / 251.9 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.02375, allocations: 384 / 251.9 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.02375, allocations: 3.938 kB / 252 MB, free: 6.773 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.69e-05/0.02382, allocations: 15.97 kB / 252 MB, free: 6.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004638/0.02428, allocations: 228.2 kB / 252.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.02444, allocations: 38.56 kB / 252.2 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.02447, allocations: 8.859 kB / 252.2 MB, free: 6.461 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.02449, allocations: 8 kB / 252.2 MB, free: 6.453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.02451, allocations: 30.56 kB / 252.3 MB, free: 6.414 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.02451, allocations: 0 / 252.3 MB, free: 6.414 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002962/0.02481, allocations: 113.5 kB / 252.4 MB, free: 6.297 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.02484, allocations: 51.41 kB / 252.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007558/0.02559, allocations: 0.739 MB / 253.2 MB, free: 5.477 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.02561, allocations: 29.7 kB / 253.2 MB, free: 5.441 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.02574, allocations: 198.4 kB / 253.4 MB, free: 5.242 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.02576, allocations: 11.89 kB / 253.4 MB, free: 5.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/0.02581, allocations: 17.7 kB / 253.4 MB, free: 5.207 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.02588, allocations: 314 kB / 253.7 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.02592, allocations: 4 kB / 253.7 MB, free: 4.891 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.635e-05/0.02594, allocations: 15.98 kB / 253.8 MB, free: 4.875 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.923e-05/0.026, allocations: 16.84 kB / 253.8 MB, free: 4.855 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.026, allocations: 4 kB / 253.8 MB, free: 4.852 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001986/0.0262, allocations: 93.56 kB / 253.9 MB, free: 4.754 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.02622, allocations: 10.81 kB / 253.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.02622, allocations: 0 / 253.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.02623, allocations: 3.938 kB / 253.9 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003139/0.02937, allocations: 15.98 kB / 253.9 MB, free: 4.727 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-06/0.02938, allocations: 0 / 253.9 MB, free: 4.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.02948, allocations: 8 kB / 253.9 MB, free: 4.719 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.02949, allocations: 7.984 kB / 253.9 MB, free: 4.711 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 0.0001102/0.0296, allocations: 108.7 kB / 254 MB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.02979, allocations: 47.94 kB / 254.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002804/0.03007, allocations: 197.7 kB / 254.3 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.03008, allocations: 7.875 kB / 254.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.03009, allocations: 4 kB / 254.3 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.03009, allocations: 0 / 254.3 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.03049, allocations: 345.1 kB / 254.6 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.03049, allocations: 0 / 254.6 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.973e-05/0.03055, allocations: 11.98 kB / 254.6 MB, free: 3.969 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.0307, allocations: 103.4 kB / 254.7 MB, free: 3.867 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.03071, allocations: 0 / 254.7 MB, free: 3.867 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.03072, allocations: 8 kB / 254.7 MB, free: 3.859 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.03072, allocations: 7.938 kB / 254.7 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.03072, allocations: 0 / 254.7 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.03094, allocations: 226.7 kB / 255 MB, free: 3.613 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.03099, allocations: 8 kB / 255 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.03111, allocations: 3.984 kB / 255 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.03115, allocations: 7.938 kB / 255 MB, free: 3.594 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.03116, allocations: 0 / 255 MB, free: 3.594 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004014/0.03156, allocations: 395.7 kB / 255.4 MB, free: 3.195 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03156, allocations: 4 kB / 255.4 MB, free: 3.191 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.03183, allocations: 63.94 kB / 255.4 MB, free: 3.129 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.000162/0.03199, allocations: 96.39 kB / 255.5 MB, free: 3.027 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.03209, allocations: 28.84 kB / 255.5 MB, free: 2.996 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.0321, allocations: 8 kB / 255.6 MB, free: 2.988 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003058/0.03516, allocations: 12.86 kB / 255.6 MB, free: 2.973 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.03563, allocations: 135.3 kB / 255.7 MB, free: 2.844 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.04188, allocations: 1.116 MB / 256.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.04205, allocations: 197.1 kB / 257 MB, free: 1.48 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0004149/0.04247, allocations: 370.2 kB / 257.4 MB, free: 1.117 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.04272, allocations: 139.3 kB / 257.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of SimCode: time 1.513e-06/0.04272, allocations: 0 / 257.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of Templates: time 0.02039/0.06311, allocations: 8.542 MB / 266 MB, free: 8.547 MB / 266.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 -ignoreHideResult -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.7108425740152597]