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.001174/0.001173, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001805/0.001805, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 65.41 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09593, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003367/0.09935, allocations: 1.894 MB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.1012, allocations: 1.253 MB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.402e-05/0.1013, allocations: 4 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.1024, allocations: 0.5101 MB / 362.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.1026, allocations: 199.4 kB / 362.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.103, allocations: 159.4 kB / 362.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.1034, allocations: 235.1 kB / 363.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.711e-05/0.1035, allocations: 21.69 kB / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.1037, allocations: 127.5 kB / 363.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.104, allocations: 207.5 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.104, allocations: 8 kB / 363.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.1042, allocations: 67.89 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002053/0.1044, allocations: 259.3 kB / 363.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.1046, allocations: 277.9 kB / 364.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006477/0.1053, allocations: 0.7667 MB / 364.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1053, allocations: 0 / 364.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1053, allocations: 0 / 364.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1053, allocations: 0 / 364.8 MB, free: 7.348 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.002507/0.1078, allocations: 1.181 MB / 366 MB, free: 6.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1079, allocations: 8.031 kB / 366 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.108, allocations: 91.89 kB / 366.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009788/0.109, allocations: 0.7547 MB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.109, allocations: 384 / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.1091, allocations: 4.375 kB / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.1094, allocations: 117.9 kB / 367 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1094, allocations: 7.984 kB / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.1094, allocations: 3.938 kB / 367 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1094, allocations: 0 / 367 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.1097, allocations: 139.9 kB / 367.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1108, allocations: 0.8181 MB / 368 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.111, allocations: 86.47 kB / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1111, allocations: 72.89 kB / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.1112, allocations: 0 / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1112, allocations: 38.56 kB / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.1112, allocations: 0 / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007651/0.112, allocations: 324.4 kB / 368.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.112, allocations: 59.33 kB / 368.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.1136, allocations: 1.401 MB / 369.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.1136, allocations: 25.7 kB / 370 MB, free: 2.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003012/0.1139, allocations: 388.4 kB / 370.3 MB, free: 1.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.114, allocations: 11.81 kB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/0.114, allocations: 21.7 kB / 370.4 MB, free: 1.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1141, allocations: 310 kB / 370.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1143, allocations: 67.94 kB / 370.7 MB, free: 1.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.1145, allocations: 86.52 kB / 370.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.1148, allocations: 158.3 kB / 371 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1148, allocations: 0 / 371 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005265/0.1154, allocations: 264.5 kB / 371.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.1154, allocations: 12.03 kB / 371.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.1154, allocations: 0 / 371.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1154, allocations: 0 / 371.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.1156, allocations: 23.97 kB / 371.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1156, allocations: 0 / 371.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.1158, allocations: 4 kB / 371.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.1159, allocations: 11.97 kB / 371.3 MB, free: 0.6328 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.0003193/0.1162, allocations: 345.6 kB / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.1164, allocations: 90.88 kB / 371.7 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1852/0.3016, allocations: 271.8 kB / 372 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3016, allocations: 3.094 kB / 372 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3016, allocations: 1.562 kB / 372 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3017, allocations: 3.828 kB / 372 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008993/0.3026, allocations: 0.5135 MB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3026, allocations: 0 / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.43e-05/0.3027, allocations: 12.97 kB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3027, allocations: 4.594 kB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3027, allocations: 5.844 kB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3027, allocations: 2.312 kB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3027, allocations: 1.812 kB / 372.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.3033, allocations: 314.8 kB / 372.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003844/0.3037, allocations: 227.9 kB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.897e-05/0.3037, allocations: 1.094 kB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.304, allocations: 8.688 kB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.304, allocations: 4.891 kB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.304, allocations: 1.547 kB / 373.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.3054, allocations: 1.015 MB / 374.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3054, allocations: 1.094 kB / 374.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.3057, allocations: 60.22 kB / 374.2 MB, free: 19.96 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.0001727/0.3059, allocations: 114.8 kB / 374.3 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.3063, allocations: 125.4 kB / 374.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3063, allocations: 2.969 kB / 374.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.3064, allocations: 53.45 kB / 374.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.307, allocations: 104.5 kB / 374.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.3089, allocations: 1.365 MB / 375.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.3094, allocations: 0.9998 MB / 376.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006944/0.3101, allocations: 472.2 kB / 377.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.3103, allocations: 41.42 kB / 377.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3103, allocations: 0 / 377.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01473/0.325, allocations: 7.375 MB / 384.8 MB, free: 16.65 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 cvode -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