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.001043/0.001043, allocations: 67.77 kB / 21.69 MB, free: 2.852 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.0012/0.0012, allocations: 165.5 kB / 24.99 MB, free: 8.742 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 1.047/1.047, allocations: 177.1 MB / 205.3 MB, free: 5.637 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 1.633e-06/1.633e-06, allocations: 0 / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.422e-05/2.585e-05, allocations: 2.312 kB / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002419/0.002445, allocations: 1.951 MB / 275 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.003864, allocations: 1.199 MB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.003972, allocations: 7.938 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008999/0.004872, allocations: 0.4944 MB / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001746/0.005047, allocations: 195.3 kB / 276.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.005405, allocations: 159.2 kB / 277 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.005711, allocations: 242.6 kB / 277.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.942e-05/0.005801, allocations: 9.812 kB / 277.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.00605, allocations: 147.6 kB / 277.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.006264, allocations: 215.6 kB / 277.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.006285, allocations: 12 kB / 277.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.006424, allocations: 63.83 kB / 277.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.006573, allocations: 263.3 kB / 278 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.006684, allocations: 139.5 kB / 278.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004892/0.007173, allocations: 0.5097 MB / 278.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.007177, allocations: 4 kB / 278.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.007178, allocations: 0 / 278.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.007186, allocations: 0 / 278.6 MB, free: 12.27 MB / 266.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.001633/0.008819, allocations: 1.273 MB / 279.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.008854, allocations: 8.031 kB / 279.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.009021, allocations: 104.3 kB / 280 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.00956, allocations: 0.5177 MB / 280.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.009579, allocations: 4.375 kB / 280.5 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.009593, allocations: 4.312 kB / 280.5 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.009754, allocations: 70.91 kB / 280.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.009761, allocations: 192 / 280.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.009773, allocations: 4.375 kB / 280.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.00978, allocations: 3.938 kB / 280.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.805e-05/0.009858, allocations: 19.98 kB / 280.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/0.01065, allocations: 0.7706 MB / 281.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.0108, allocations: 54.98 kB / 281.4 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.305e-05/0.01085, allocations: 19.75 kB / 281.5 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.01086, allocations: 0 / 281.5 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.01088, allocations: 41.33 kB / 281.5 MB, free: 9.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 7.41e-07/0.01088, allocations: 0 / 281.5 MB, free: 9.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003917/0.01127, allocations: 161 kB / 281.7 MB, free: 9.062 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.0113, allocations: 55.34 kB / 281.7 MB, free: 8.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008835/0.01218, allocations: 1.127 MB / 282.8 MB, free: 7.848 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.0122, allocations: 29.7 kB / 282.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.01249, allocations: 0.5033 MB / 283.4 MB, free: 7.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.01251, allocations: 11.89 kB / 283.4 MB, free: 7.293 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.01256, allocations: 27.36 kB / 283.4 MB, free: 7.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.01266, allocations: 488.4 kB / 283.9 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.0127, allocations: 4 kB / 283.9 MB, free: 6.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.322e-05/0.01273, allocations: 15.98 kB / 283.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.403e-05/0.01281, allocations: 23.97 kB / 283.9 MB, free: 6.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01281, allocations: 0 / 283.9 MB, free: 6.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002215/0.01303, allocations: 161 kB / 284.1 MB, free: 6.562 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.01305, allocations: 7.938 kB / 284.1 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.01305, allocations: 7.938 kB / 284.1 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.01307, allocations: 4 kB / 284.1 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.554e-05/0.01316, allocations: 11.98 kB / 284.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.01317, allocations: 0 / 284.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.01324, allocations: 7.984 kB / 284.1 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.01325, allocations: 4 kB / 284.1 MB, free: 6.52 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 0.0001035/0.01336, allocations: 156.6 kB / 284.3 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.01347, allocations: 95.36 kB / 284.4 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.0137, allocations: 157.5 kB / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01371, allocations: 0 / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.01371, allocations: 0 / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01371, allocations: 0 / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.01414, allocations: 0.5448 MB / 285.1 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.01414, allocations: 3.938 kB / 285.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.613e-05/0.01418, allocations: 7.984 kB / 285.1 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01418, allocations: 8.094 kB / 285.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.01434, allocations: 11.92 kB / 285.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01434, allocations: 0 / 285.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01434, allocations: 3.984 kB / 285.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002123/0.01455, allocations: 292.2 kB / 285.4 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.0147, allocations: 135.3 kB / 285.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.01474, allocations: 11.94 kB / 285.5 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.01482, allocations: 0 / 285.5 MB, free: 5.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.01487, allocations: 7.984 kB / 285.5 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.01487, allocations: 0 / 285.5 MB, free: 5.027 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005404/0.01541, allocations: 0.6539 MB / 286.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01541, allocations: 4 kB / 286.2 MB, free: 4.359 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002291/0.01564, allocations: 67.94 kB / 286.3 MB, free: 4.293 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.0001817/0.01582, allocations: 115.2 kB / 286.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.01596, allocations: 31.67 kB / 286.4 MB, free: 4.137 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01596, allocations: 0 / 286.4 MB, free: 4.137 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.091e-05/0.01601, allocations: 27.67 kB / 286.4 MB, free: 4.105 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.01639, allocations: 108.1 kB / 286.5 MB, free: 3.996 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.01773, allocations: 1.105 MB / 287.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.01786, allocations: 193.2 kB / 287.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.01823, allocations: 430.2 kB / 288.3 MB, free: 2.219 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.01831, allocations: 44.5 kB / 288.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of SimCode: time 1.243e-06/0.01831, allocations: 0 / 288.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of Templates: time 0.1156/0.1339, allocations: 7.935 MB / 296.2 MB, free: 27.41 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 -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: 3.036648565903306]