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.001996/0.001996, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 14.72 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.00211/0.00211, allocations: 150.2 kB / 23.94 MB, free: 4.164 MB / 14.72 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.445/1.445, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 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.713e-06/1.713e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.594e-05/2.765e-05, allocations: 2.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002807/0.002835, allocations: 1.84 MB / 320.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.004368, allocations: 1.119 MB / 321.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.067e-05/0.004449, allocations: 1.281 kB / 321.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.005485, allocations: 0.4911 MB / 322.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.005741, allocations: 195 kB / 322.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.006161, allocations: 164.5 kB / 322.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.006488, allocations: 235.4 kB / 322.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.645e-05/0.006574, allocations: 8.984 kB / 323 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.006803, allocations: 145.9 kB / 323.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.007095, allocations: 215.4 kB / 323.3 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.007127, allocations: 10.81 kB / 323.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.007274, allocations: 60.78 kB / 323.4 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.007475, allocations: 273.6 kB / 323.6 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.007628, allocations: 141.6 kB / 323.8 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007964/0.008425, allocations: 0.7351 MB / 324.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.008428, allocations: 3.938 kB / 324.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.008429, allocations: 0 / 324.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.008445, allocations: 0 / 324.5 MB, free: 0.7344 MB / 286.1 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.002458/0.0109, allocations: 1.132 MB / 325.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.01094, allocations: 9.766 kB / 325.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.01118, allocations: 95.77 kB / 325.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.01232, allocations: 0.7031 MB / 326.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.01233, allocations: 1.656 kB / 326.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.01235, allocations: 1.562 kB / 326.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.01269, allocations: 121.8 kB / 326.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.0127, allocations: 192 / 326.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.01272, allocations: 1.812 kB / 326.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.01272, allocations: 3.938 kB / 326.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.01312, allocations: 144.1 kB / 326.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.01426, allocations: 0.6912 MB / 327.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.01451, allocations: 92.58 kB / 327.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.0147, allocations: 74.53 kB / 327.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.01472, allocations: 1.438 kB / 327.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.01475, allocations: 36.81 kB / 327.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.01475, allocations: 0 / 327.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000939/0.01569, allocations: 332.9 kB / 327.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.01574, allocations: 53.17 kB / 328 MB, free: 14.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.01791, allocations: 1.407 MB / 329.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.01794, allocations: 25.7 kB / 329.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004062/0.01834, allocations: 387 kB / 329.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.01838, allocations: 13.52 kB / 329.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.01845, allocations: 25.42 kB / 329.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.0186, allocations: 307.6 kB / 330.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.0188, allocations: 69.22 kB / 330.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.01902, allocations: 86.38 kB / 330.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.01943, allocations: 157.9 kB / 330.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01943, allocations: 0 / 330.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006719/0.02011, allocations: 265.9 kB / 330.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.02013, allocations: 24.52 kB / 330.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.02013, allocations: 1.438 kB / 330.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.02015, allocations: 1.438 kB / 330.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.02034, allocations: 14.02 kB / 330.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.02035, allocations: 1.125 kB / 330.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.02058, allocations: 9.641 kB / 330.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.0206, allocations: 6.125 kB / 330.8 MB, free: 13.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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.0003734/0.02097, allocations: 332 kB / 331.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.02118, allocations: 96.66 kB / 331.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006436/0.02183, allocations: 289 kB / 331.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.02183, allocations: 1.031 kB / 331.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.02184, allocations: 3.938 kB / 331.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.02184, allocations: 5.156 kB / 331.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006017/0.02244, allocations: 405.7 kB / 331.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.02245, allocations: 1.156 kB / 331.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.713e-05/0.02253, allocations: 10.86 kB / 331.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.02254, allocations: 1.125 kB / 331.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.02255, allocations: 1.125 kB / 331.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.02255, allocations: 3.938 kB / 331.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.02256, allocations: 5.141 kB / 331.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.02312, allocations: 319.5 kB / 332.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.02344, allocations: 152.7 kB / 332.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.02352, allocations: 5.094 kB / 332.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.02373, allocations: 8.219 kB / 332.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.02378, allocations: 10.11 kB / 332.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.02379, allocations: 1.125 kB / 332.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.02517, allocations: 1.015 MB / 333.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.02517, allocations: 3.938 kB / 333.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.02555, allocations: 63.88 kB / 333.5 MB, free: 11.76 MB / 302.1 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.0002241/0.02577, allocations: 116.6 kB / 333.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004294/0.0262, allocations: 122.4 kB / 333.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.02621, allocations: 4 kB / 333.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.02639, allocations: 58.02 kB / 333.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.02705, allocations: 104 kB / 333.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.02926, allocations: 1.372 MB / 335.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.02978, allocations: 405.1 kB / 335.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007007/0.03048, allocations: 475.4 kB / 336.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.03062, allocations: 40.5 kB / 336.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.03062, allocations: 0 / 336.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01637/0.04699, allocations: 7.976 MB / 344.1 MB, free: 2.219 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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.617667224258184]