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.001567/0.001567, allocations: 112.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001934/0.001934, allocations: 211.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 63.89 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2602, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002845/0.2631, allocations: 1.9 MB / 411.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.2648, allocations: 1.253 MB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.543e-05/0.2649, allocations: 4 kB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009503/0.2658, allocations: 0.5061 MB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.266, allocations: 195.4 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.2665, allocations: 167.4 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.2668, allocations: 235.1 kB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.328e-05/0.2669, allocations: 17.69 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.2672, allocations: 127.5 kB / 414.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.2674, allocations: 211.5 kB / 414.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.2675, allocations: 8 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.2676, allocations: 67.88 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.2678, allocations: 259.3 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.2681, allocations: 277.9 kB / 415.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007035/0.2688, allocations: 0.768 MB / 415.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2688, allocations: 7.938 kB / 415.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2688, allocations: 0 / 415.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.2688, allocations: 0 / 415.9 MB, free: 11.63 MB / 334.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.002582/0.2714, allocations: 1.177 MB / 417.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2715, allocations: 12.03 kB / 417.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.2716, allocations: 83.91 kB / 417.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.2727, allocations: 0.747 MB / 417.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.2728, allocations: 8.312 kB / 417.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.2728, allocations: 4.359 kB / 417.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.2731, allocations: 121.9 kB / 418 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2731, allocations: 0 / 418 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.2731, allocations: 7.938 kB / 418 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2731, allocations: 0 / 418 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.2735, allocations: 143.9 kB / 418.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2745, allocations: 0.8065 MB / 419 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.2747, allocations: 90.45 kB / 419.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.2749, allocations: 72.91 kB / 419.1 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.2749, allocations: 4 kB / 419.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.275, allocations: 30.56 kB / 419.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.275, allocations: 0 / 419.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000769/0.2757, allocations: 328.4 kB / 419.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.2758, allocations: 59.34 kB / 419.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.2773, allocations: 1.405 MB / 421 MB, free: 6.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.2773, allocations: 25.7 kB / 421 MB, free: 6.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.2776, allocations: 392.4 kB / 421.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.2777, allocations: 3.906 kB / 421.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.2777, allocations: 25.7 kB / 421.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.2779, allocations: 306 kB / 421.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.278, allocations: 67.94 kB / 421.8 MB, free: 5.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.2782, allocations: 90.52 kB / 421.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.2786, allocations: 158.3 kB / 422 MB, free: 5.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2786, allocations: 4 kB / 422 MB, free: 5.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005531/0.2792, allocations: 260.4 kB / 422.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2792, allocations: 8 kB / 422.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2792, allocations: 3.984 kB / 422.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2792, allocations: 0 / 422.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.2794, allocations: 19.98 kB / 422.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2794, allocations: 0 / 422.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.2796, allocations: 12.09 kB / 422.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.2796, allocations: 3.984 kB / 422.3 MB, free: 4.93 MB / 334.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.0003142/0.2799, allocations: 345.6 kB / 422.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.2801, allocations: 90.94 kB / 422.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005924/0.2807, allocations: 281.5 kB / 423 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2807, allocations: 0 / 423 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2807, allocations: 0 / 423 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2808, allocations: 7.938 kB / 423 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.2813, allocations: 0.5142 MB / 423.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.2813, allocations: 4 kB / 423.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.98e-05/0.2814, allocations: 7.984 kB / 423.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2814, allocations: 8 kB / 423.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.2814, allocations: 0 / 423.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2814, allocations: 0 / 423.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2814, allocations: 3.984 kB / 423.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.2819, allocations: 306.9 kB / 423.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003874/0.2823, allocations: 231.9 kB / 424.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.2824, allocations: 3.984 kB / 424.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2826, allocations: 8 kB / 424.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.2826, allocations: 7.984 kB / 424.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.2827, allocations: 4 kB / 424.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.2838, allocations: 1.013 MB / 425.1 MB, free: 2 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.2838, allocations: 0 / 425.1 MB, free: 2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000336/0.2842, allocations: 63.94 kB / 425.2 MB, free: 1.938 MB / 334.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.000198/0.2844, allocations: 107.2 kB / 425.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.2848, allocations: 123.9 kB / 425.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2848, allocations: 3.938 kB / 425.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.2849, allocations: 55.95 kB / 425.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.2855, allocations: 108.4 kB / 425.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/0.2873, allocations: 1.421 MB / 427 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000583/0.2879, allocations: 1.001 MB / 428 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.288, allocations: 39.42 kB / 428 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.288, allocations: 0 / 428 MB, free: 15.01 MB / 350.1 MB Notification: Performance of Templates: time 0.0126/0.3006, allocations: 9.275 MB / 437.3 MB, free: 5.75 MB / 350.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 -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