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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 117 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 208.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 65.16 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09141, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003354/0.09479, allocations: 1.905 MB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.09646, allocations: 1.253 MB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.499e-05/0.09655, allocations: 4 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009076/0.09749, allocations: 0.5024 MB / 362.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.0977, allocations: 195.4 kB / 362.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003884/0.0981, allocations: 167.3 kB / 362.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002982/0.09841, allocations: 239.1 kB / 363.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.066e-05/0.0985, allocations: 17.69 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.09871, allocations: 131.5 kB / 363.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.09897, allocations: 207.5 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.099, allocations: 8 kB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.09915, allocations: 63.91 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001878/0.09934, allocations: 259.3 kB / 363.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.09957, allocations: 277.9 kB / 364.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006506/0.1002, allocations: 0.7629 MB / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1002, allocations: 0 / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1003, allocations: 0 / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.1003, allocations: 0 / 364.9 MB, free: 7.355 MB / 302.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.002489/0.1028, allocations: 1.193 MB / 366.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.1028, allocations: 8.031 kB / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.103, allocations: 91.89 kB / 366.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.104, allocations: 0.7469 MB / 366.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.104, allocations: 4.375 kB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.1041, allocations: 12.31 kB / 366.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.1044, allocations: 113.9 kB / 367 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1044, allocations: 0 / 367 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.1044, allocations: 4 kB / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1044, allocations: 0 / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.1048, allocations: 143.9 kB / 367.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1058, allocations: 0.8219 MB / 368 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.106, allocations: 78.52 kB / 368.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.1062, allocations: 76.89 kB / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.1062, allocations: 0 / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.1063, allocations: 34.56 kB / 368.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.1063, allocations: 4 kB / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007977/0.1071, allocations: 328.4 kB / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1071, allocations: 51.41 kB / 368.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.1088, allocations: 1.405 MB / 370 MB, free: 2.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1088, allocations: 29.7 kB / 370 MB, free: 2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.1091, allocations: 384.4 kB / 370.4 MB, free: 1.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.1092, allocations: 15.81 kB / 370.4 MB, free: 1.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.633e-05/0.1092, allocations: 17.7 kB / 370.4 MB, free: 1.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1094, allocations: 310 kB / 370.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.1096, allocations: 63.95 kB / 370.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.1098, allocations: 86.52 kB / 370.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.1101, allocations: 162.3 kB / 371 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1101, allocations: 3.938 kB / 371 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005454/0.1107, allocations: 264.5 kB / 371.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1107, allocations: 8.094 kB / 371.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1107, allocations: 4 kB / 371.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1107, allocations: 0 / 371.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.1109, allocations: 15.98 kB / 371.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1109, allocations: 0 / 371.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.1111, allocations: 7.984 kB / 371.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1111, allocations: 4 kB / 371.3 MB, free: 0.6406 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.000295/0.1114, allocations: 341.6 kB / 371.6 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.1116, allocations: 94.86 kB / 371.7 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1719/0.2835, allocations: 269.5 kB / 372 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.2835, allocations: 1.5 kB / 372 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.2835, allocations: 2.609 kB / 372 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.2836, allocations: 0 / 372 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.2846, allocations: 0.5132 MB / 372.5 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.2846, allocations: 1.688 kB / 372.5 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.2848, allocations: 17.16 kB / 372.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.2848, allocations: 0.5 kB / 372.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.2848, allocations: 5.172 kB / 372.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.2848, allocations: 5.203 kB / 372.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2848, allocations: 0 / 372.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006308/0.2854, allocations: 314 kB / 372.8 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/0.2858, allocations: 231.1 kB / 373.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.2859, allocations: 1.672 kB / 373.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.2861, allocations: 6.656 kB / 373.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.2862, allocations: 5.328 kB / 373.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.2862, allocations: 5.391 kB / 373.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001435/0.2877, allocations: 1.015 MB / 374.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2877, allocations: 1.156 kB / 374.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.288, allocations: 66.22 kB / 374.2 MB, free: 20.26 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.0001993/0.2882, allocations: 108.4 kB / 374.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.2886, allocations: 127.9 kB / 374.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.2887, allocations: 1.531 kB / 374.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.2888, allocations: 51.89 kB / 374.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.2894, allocations: 102 kB / 374.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.2916, allocations: 1.373 MB / 375.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006534/0.2922, allocations: 0.9968 MB / 376.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000854/0.2931, allocations: 467.9 kB / 377.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.2932, allocations: 46.3 kB / 377.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2932, allocations: 0 / 377.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of Templates: time 0.01634/0.3096, allocations: 7.368 MB / 384.8 MB, free: 16.89 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches