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.0009886/0.0009886, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.0009405/0.0009405, allocations: 141.1 kB / 24.54 MB, free: 32 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 0.956/0.956, allocations: 173.3 MB / 201.1 MB, free: 9.34 MB / 186.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.252e-06/1.252e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.006e-05/2.131e-05, allocations: 6.25 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002531/0.002553, allocations: 1.932 MB / 269.9 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.003838, allocations: 1.191 MB / 271.1 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.881e-05/0.003917, allocations: 7.938 kB / 271.1 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008554/0.004772, allocations: 494.3 kB / 271.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001656/0.004938, allocations: 195.3 kB / 271.8 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.005283, allocations: 171.3 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002655/0.005549, allocations: 238.9 kB / 272.2 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.687e-05/0.005626, allocations: 9.797 kB / 272.2 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.005796, allocations: 151.6 kB / 272.3 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.006005, allocations: 211.6 kB / 272.5 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.006027, allocations: 8 kB / 272.5 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.006142, allocations: 63.89 kB / 272.6 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.006287, allocations: 263.3 kB / 272.9 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.006405, allocations: 139.5 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.006862, allocations: 0.5136 MB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.006864, allocations: 0 / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006865, allocations: 0 / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.006872, allocations: 0 / 273.5 MB, free: 0.875 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.001591/0.008463, allocations: 1.28 MB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.008499, allocations: 8.922 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.008634, allocations: 100.3 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000547/0.009181, allocations: 0.5178 MB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.009201, allocations: 4.375 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.009216, allocations: 4.312 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.009378, allocations: 74.91 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.009387, allocations: 4.188 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.0094, allocations: 384 / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.009407, allocations: 3.938 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.384e-05/0.009481, allocations: 19.98 kB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.01026, allocations: 0.7666 MB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.01043, allocations: 63.05 kB / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.01047, allocations: 15.67 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.01049, allocations: 4 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.01051, allocations: 41.33 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.01051, allocations: 4 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.000307/0.01082, allocations: 153.1 kB / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.66e-05/0.01084, allocations: 55.34 kB / 276.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009678/0.01181, allocations: 1.13 MB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.01182, allocations: 25.7 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.01211, allocations: 0.5033 MB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.01213, allocations: 11.84 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.503e-05/0.01218, allocations: 31.36 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.01228, allocations: 484.4 kB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.901e-05/0.01232, allocations: 8 kB / 278.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.24e-05/0.01235, allocations: 15.98 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.351e-05/0.01243, allocations: 31.69 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01243, allocations: 0 / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001991/0.01263, allocations: 149 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.01264, allocations: 11.94 kB / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.01265, allocations: 0 / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.01266, allocations: 0 / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.891e-05/0.01276, allocations: 15.98 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.01277, allocations: 0 / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.63e-05/0.01284, allocations: 4 kB / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.01286, allocations: 8 kB / 279 MB, free: 11.12 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 9.26e-05/0.01295, allocations: 152.6 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.01305, allocations: 99.31 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.01329, allocations: 169.8 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.01329, allocations: 3.984 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.0133, allocations: 0 / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.0133, allocations: 0 / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004132/0.01371, allocations: 0.541 MB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.01372, allocations: 7.875 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/0.01376, allocations: 4 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01376, allocations: 4 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.01377, allocations: 7.922 kB / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.01377, allocations: 0 / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.01377, allocations: 0 / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.01399, allocations: 304.1 kB / 280.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.01415, allocations: 139.4 kB / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.0142, allocations: 3.938 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.01428, allocations: 7.984 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.01432, allocations: 4 kB / 280.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.01433, allocations: 3.984 kB / 280.5 MB, free: 9.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006782/0.015, allocations: 0.6539 MB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.015, allocations: 0 / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.01523, allocations: 67.94 kB / 281.2 MB, free: 8.887 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.0001462/0.01537, allocations: 111.2 kB / 281.3 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001269/0.0155, allocations: 35.66 kB / 281.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.0155, allocations: 0 / 281.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.111e-05/0.01555, allocations: 23.67 kB / 281.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.01592, allocations: 103.3 kB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.01716, allocations: 1.109 MB / 282.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.01729, allocations: 193.2 kB / 282.8 MB, free: 7.246 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003565/0.01764, allocations: 434.3 kB / 283.2 MB, free: 6.816 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.01773, allocations: 40.48 kB / 283.2 MB, free: 6.773 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01773, allocations: 4 kB / 283.2 MB, free: 6.77 MB / 266.7 MB Notification: Performance of Templates: time 0.123/0.1408, allocations: 7.973 MB / 291.2 MB, free: 25.63 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","",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.9847391829825938]