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.001094/0.001094, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004978/0.004978, allocations: 164 kB / 24.7 MB, free: 8.891 MB / 18.57 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.8446/0.8446, allocations: 177.1 MB / 205 MB, free: 5.738 MB / 186.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 2.685e-06/2.685e-06, allocations: 4 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.991e-05/2.259e-05, allocations: 4.812 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002071/0.002094, allocations: 1.87 MB / 327.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.003261, allocations: 1.141 MB / 328.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.378e-05/0.003335, allocations: 7.938 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.004342, allocations: 490.4 kB / 329.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.004482, allocations: 195.3 kB / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.004771, allocations: 163.2 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.005012, allocations: 246.3 kB / 329.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.369e-05/0.005085, allocations: 5.812 kB / 329.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.005268, allocations: 155.6 kB / 330 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.005436, allocations: 207.6 kB / 330.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.005455, allocations: 8 kB / 330.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.005565, allocations: 63.89 kB / 330.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.005696, allocations: 263.3 kB / 330.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.224e-05/0.005788, allocations: 143.4 kB / 330.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005111/0.006299, allocations: 0.7396 MB / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.006301, allocations: 0 / 331.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.006302, allocations: 4 kB / 331.5 MB, free: 9.754 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.006308, allocations: 0 / 331.5 MB, free: 9.754 MB / 298.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.001381/0.007689, allocations: 1.121 MB / 332.6 MB, free: 8.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.007723, allocations: 12.03 kB / 332.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.007836, allocations: 96.31 kB / 332.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.008469, allocations: 0.6985 MB / 333.4 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.008481, allocations: 384 / 333.4 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.008494, allocations: 384 / 333.4 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.008683, allocations: 122.1 kB / 333.5 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.008691, allocations: 4.188 kB / 333.5 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.008703, allocations: 384 / 333.5 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.00871, allocations: 3.938 kB / 333.5 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.00891, allocations: 147.8 kB / 333.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006083/0.009518, allocations: 0.6848 MB / 334.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.00964, allocations: 86.52 kB / 334.4 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.232e-05/0.009732, allocations: 72.84 kB / 334.5 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.009747, allocations: 8 kB / 334.5 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.009771, allocations: 42.42 kB / 334.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.009772, allocations: 0 / 334.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004543/0.01023, allocations: 325 kB / 334.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.01026, allocations: 51.41 kB / 334.9 MB, free: 6.152 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.01158, allocations: 1.409 MB / 336.3 MB, free: 4.723 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.01159, allocations: 25.7 kB / 336.3 MB, free: 4.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.0118, allocations: 388.4 kB / 336.7 MB, free: 4.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.01182, allocations: 15.88 kB / 336.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.01185, allocations: 17.72 kB / 336.8 MB, free: 4.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.762e-05/0.01192, allocations: 310 kB / 337.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.701e-05/0.01202, allocations: 63.94 kB / 337.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.621e-05/0.01211, allocations: 86.52 kB / 337.2 MB, free: 3.805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.0123, allocations: 162.4 kB / 337.4 MB, free: 3.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.0123, allocations: 0 / 337.4 MB, free: 3.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003063/0.01261, allocations: 269.2 kB / 337.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.01262, allocations: 7.938 kB / 337.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.01262, allocations: 0 / 337.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.01263, allocations: 0 / 337.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.393e-05/0.01273, allocations: 19.98 kB / 337.7 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.01273, allocations: 8.031 kB / 337.7 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.053e-05/0.01283, allocations: 19.92 kB / 337.7 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.01284, allocations: 0 / 337.7 MB, free: 3.312 MB / 298.7 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.0002172/0.01305, allocations: 337.7 kB / 338 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.006e-05/0.01314, allocations: 95.36 kB / 338.1 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003337/0.01348, allocations: 277.4 kB / 338.4 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01348, allocations: 3.938 kB / 338.4 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.01348, allocations: 0 / 338.4 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.01349, allocations: 0 / 338.4 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002884/0.01377, allocations: 414 kB / 338.8 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.01378, allocations: 4 kB / 338.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.01382, allocations: 7.984 kB / 338.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01382, allocations: 4 kB / 338.8 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.01383, allocations: 7.938 kB / 338.8 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.01383, allocations: 3.938 kB / 338.8 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01383, allocations: 0 / 338.8 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.01409, allocations: 315.4 kB / 339.1 MB, free: 1.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.01426, allocations: 151.4 kB / 339.3 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.0143, allocations: 7.938 kB / 339.3 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.713e-05/0.01439, allocations: 7.984 kB / 339.3 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.01443, allocations: 4.094 kB / 339.3 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.01443, allocations: 15.92 kB / 339.3 MB, free: 1.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007482/0.01518, allocations: 1.013 MB / 340.3 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01518, allocations: 0 / 340.3 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002215/0.0154, allocations: 71.88 kB / 340.4 MB, free: 0.5273 MB / 298.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.0001439/0.01555, allocations: 99.25 kB / 340.5 MB, free: 432 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.01577, allocations: 135.8 kB / 340.6 MB, free: 296 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01577, allocations: 0 / 340.6 MB, free: 296 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.398e-05/0.01586, allocations: 51.95 kB / 340.7 MB, free: 244 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.01621, allocations: 97.42 kB / 340.8 MB, free: 148 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.01743, allocations: 1.439 MB / 342.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.01769, allocations: 396.1 kB / 342.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.834e-05/0.01777, allocations: 40.5 kB / 342.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01777, allocations: 0 / 342.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of Templates: time 0.008405/0.02617, allocations: 9.443 MB / 352.1 MB, free: 4.789 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.7224763603881]