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.001098/0.001098, allocations: 116.1 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 68.02 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.261, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002958/0.264, allocations: 1.901 MB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.2656, allocations: 1.253 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.7e-05/0.2657, allocations: 0 / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009201/0.2666, allocations: 0.5023 MB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.2668, allocations: 187.4 kB / 413.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.2672, allocations: 179.3 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.2675, allocations: 227.1 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.465e-05/0.2676, allocations: 33.66 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.2678, allocations: 123.6 kB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.268, allocations: 211.5 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.2681, allocations: 8 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.2682, allocations: 59.91 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.2684, allocations: 259.3 kB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.2686, allocations: 281.9 kB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006739/0.2693, allocations: 0.7757 MB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2693, allocations: 0 / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2693, allocations: 0 / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.2693, allocations: 0 / 415.9 MB, free: 11.61 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.002528/0.2719, allocations: 1.181 MB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2719, allocations: 8.031 kB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.2721, allocations: 87.89 kB / 417.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009904/0.2731, allocations: 0.7392 MB / 417.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.2731, allocations: 4.375 kB / 417.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.2732, allocations: 8.359 kB / 417.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000281/0.2734, allocations: 113.9 kB / 418 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2735, allocations: 0 / 418 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.2735, allocations: 0 / 418 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2735, allocations: 0 / 418 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.2738, allocations: 147.8 kB / 418.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2749, allocations: 0.8298 MB / 419 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.2751, allocations: 78.53 kB / 419.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.2753, allocations: 80.89 kB / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.2753, allocations: 0 / 419.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.2753, allocations: 30.56 kB / 419.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 3.216e-06/0.2753, allocations: 0 / 419.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007822/0.2761, allocations: 336.3 kB / 419.5 MB, free: 7.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.2761, allocations: 51.41 kB / 419.6 MB, free: 7.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001515/0.2777, allocations: 1.401 MB / 421 MB, free: 6.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.2777, allocations: 29.7 kB / 421 MB, free: 6.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.278, allocations: 388.4 kB / 421.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.278, allocations: 7.906 kB / 421.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.324e-05/0.2781, allocations: 25.7 kB / 421.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2782, allocations: 310 kB / 421.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.2784, allocations: 67.94 kB / 421.8 MB, free: 5.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.2786, allocations: 78.53 kB / 421.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.2789, allocations: 166.4 kB / 422 MB, free: 5.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.2789, allocations: 3.938 kB / 422 MB, free: 5.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005453/0.2795, allocations: 264.4 kB / 422.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2795, allocations: 4 kB / 422.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.2795, allocations: 4.094 kB / 422.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2795, allocations: 4 kB / 422.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.2797, allocations: 11.98 kB / 422.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2797, allocations: 3.984 kB / 422.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.2799, allocations: 11.94 kB / 422.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.28, allocations: 3.938 kB / 422.3 MB, free: 4.902 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.0003095/0.2803, allocations: 349.6 kB / 422.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.2805, allocations: 82.97 kB / 422.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005574/0.281, allocations: 273.6 kB / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.281, allocations: 0 / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.281, allocations: 0 / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/0.2814, allocations: 235.9 kB / 423.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.2815, allocations: 0 / 423.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.2817, allocations: 7.984 kB / 423.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.2817, allocations: 11.88 kB / 423.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003886/0.2821, allocations: 220.8 kB / 423.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004835/0.2826, allocations: 386.1 kB / 423.9 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001459/0.2828, allocations: 51.95 kB / 423.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.284, allocations: 1.013 MB / 424.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of Backend: time 5.11e-07/0.284, allocations: 4 kB / 424.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006536/0.2846, allocations: 170.2 kB / 425.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of SimCode: time 0.002116/0.2868, allocations: 1.921 MB / 427 MB, free: 76 kB / 334.1 MB Notification: Performance of Templates: time 0.0136/0.3004, allocations: 7.803 MB / 434.8 MB, free: 8.316 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