Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002041/0.002041, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002473/0.002473, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.283e-05/3.401e-05, allocations: 6.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00374/0.003774, allocations: 1.919 MB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.005988, allocations: 1.191 MB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.006098, allocations: 3.938 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.007378, allocations: 0.4982 MB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003002/0.007678, allocations: 199.3 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005029/0.008181, allocations: 159.2 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004432/0.008624, allocations: 234.8 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.008717, allocations: 13.8 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.009093, allocations: 151.6 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003574/0.009451, allocations: 211.6 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.376e-05/0.009495, allocations: 8 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.009694, allocations: 67.81 kB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002929/0.009987, allocations: 263.3 kB / 277.1 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.0102, allocations: 139.5 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009859/0.01118, allocations: 0.7357 MB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.01119, allocations: 0 / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01119, allocations: 0 / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.732e-05/0.01122, allocations: 0 / 277.9 MB, free: 12.04 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.003428/0.01465, allocations: 1.296 MB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.01469, allocations: 19.98 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.01498, allocations: 96.31 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/0.01624, allocations: 0.5373 MB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.01626, allocations: 8.312 kB / 279.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.01628, allocations: 384 / 279.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.01656, allocations: 106.2 kB / 280 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.01657, allocations: 192 / 280 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.01658, allocations: 4.375 kB / 280 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.01659, allocations: 3.938 kB / 280 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.01691, allocations: 135.9 kB / 280.1 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.01863, allocations: 0.8487 MB / 281 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004863/0.01911, allocations: 206.9 kB / 281.2 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.01927, allocations: 71.64 kB / 281.3 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.01929, allocations: 0 / 281.3 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.01933, allocations: 37.33 kB / 281.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.01933, allocations: 0 / 281.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0008157/0.02014, allocations: 328.9 kB / 281.6 MB, free: 8.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.02019, allocations: 55.41 kB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.02211, allocations: 1.22 MB / 282.9 MB, free: 6.902 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.02214, allocations: 25.7 kB / 282.9 MB, free: 6.871 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005805/0.02272, allocations: 0.5228 MB / 283.4 MB, free: 6.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.02275, allocations: 7.891 kB / 283.4 MB, free: 6.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.02283, allocations: 27.38 kB / 283.5 MB, free: 6.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002476/0.02307, allocations: 484.4 kB / 283.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.02323, allocations: 67.94 kB / 284 MB, free: 5.754 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.02338, allocations: 63.95 kB / 284.1 MB, free: 5.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.02368, allocations: 139.6 kB / 284.2 MB, free: 5.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.02369, allocations: 0 / 284.2 MB, free: 5.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005677/0.02425, allocations: 253 kB / 284.5 MB, free: 5.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.02427, allocations: 7.938 kB / 284.5 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.02428, allocations: 4 kB / 284.5 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.0243, allocations: 0 / 284.5 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.02446, allocations: 15.98 kB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.02447, allocations: 0 / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.02469, allocations: 11.89 kB / 284.5 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.02471, allocations: 4.312 kB / 284.5 MB, free: 5.254 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.0002482/0.02496, allocations: 184.6 kB / 284.7 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.02522, allocations: 91.38 kB / 284.8 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006439/0.02586, allocations: 221.4 kB / 285 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.02587, allocations: 4 kB / 285 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.02588, allocations: 4 kB / 285 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.02588, allocations: 3.938 kB / 285 MB, free: 4.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009854/0.02687, allocations: 0.584 MB / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.02687, allocations: 0 / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.973e-05/0.02694, allocations: 7.984 kB / 285.6 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.02694, allocations: 0 / 285.6 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.02696, allocations: 7.938 kB / 285.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.02696, allocations: 0 / 285.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.02697, allocations: 4 kB / 285.6 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.02754, allocations: 364.1 kB / 286 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004255/0.02796, allocations: 143.3 kB / 286.1 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.411e-05/0.02804, allocations: 3.938 kB / 286.1 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.0282, allocations: 4 kB / 286.1 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.02826, allocations: 11.98 kB / 286.1 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.02827, allocations: 0 / 286.1 MB, free: 3.562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.02943, allocations: 0.7086 MB / 286.8 MB, free: 2.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02943, allocations: 3.938 kB / 286.8 MB, free: 2.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003554/0.02979, allocations: 63.94 kB / 286.9 MB, free: 2.777 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.0002204/0.03001, allocations: 115.2 kB / 287 MB, free: 2.656 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.03037, allocations: 123.7 kB / 287.1 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.03037, allocations: 0 / 287.1 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.03052, allocations: 55.66 kB / 287.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.03113, allocations: 108.1 kB / 287.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.03294, allocations: 1.129 MB / 288.4 MB, free: 1.199 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.03343, allocations: 372.1 kB / 288.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006354/0.03406, allocations: 434.3 kB / 289.2 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.03419, allocations: 40.5 kB / 289.2 MB, free: 352 kB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.03419, allocations: 7.875 kB / 289.2 MB, free: 344 kB / 266.7 MB Notification: Performance of Templates: time 0.1225/0.1567, allocations: 7.937 MB / 297.2 MB, free: 25.75 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.769310278003104]