Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.49/1.49, allocations: 230.4 MB / 250 MB, free: 9.012 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 71.83 kB / 367.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2541, allocations: 53.31 MB / 420.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002976/0.2571, allocations: 1.912 MB / 422.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.2588, allocations: 1.265 MB / 423.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.133e-05/0.2589, allocations: 0 / 423.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009841/0.2599, allocations: 0.5024 MB / 424.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.2601, allocations: 191.4 kB / 424.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.2605, allocations: 171.4 kB / 424.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2609, allocations: 223.1 kB / 424.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.695e-05/0.2609, allocations: 17.69 kB / 424.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.2612, allocations: 127.5 kB / 425 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.2614, allocations: 227.4 kB / 425.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.2615, allocations: 8 kB / 425.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.2616, allocations: 55.97 kB / 425.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.2618, allocations: 275.2 kB / 425.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.2621, allocations: 281.9 kB / 425.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008105/0.2629, allocations: 0.7776 MB / 426.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2629, allocations: 0 / 426.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2629, allocations: 0 / 426.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2629, allocations: 0 / 426.6 MB, free: 2.297 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.002542/0.2654, allocations: 1.201 MB / 427.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2655, allocations: 12.03 kB / 427.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.2657, allocations: 96.31 kB / 427.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.2667, allocations: 0.7635 MB / 428.7 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2667, allocations: 4.375 kB / 428.7 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.2667, allocations: 384 / 428.7 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.267, allocations: 125.8 kB / 428.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.267, allocations: 0 / 428.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.267, allocations: 0 / 428.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.267, allocations: 0 / 428.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003524/0.2674, allocations: 147.9 kB / 429 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2685, allocations: 0.8219 MB / 429.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.2687, allocations: 82.47 kB / 429.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.2689, allocations: 72.89 kB / 430 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.2689, allocations: 4 kB / 430 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.2689, allocations: 34.56 kB / 430 MB, free: 14.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2689, allocations: 0 / 430 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007954/0.2697, allocations: 325 kB / 430.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.2698, allocations: 51.41 kB / 430.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.2715, allocations: 1.409 MB / 431.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.2715, allocations: 25.7 kB / 431.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/0.2719, allocations: 392.4 kB / 432.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.2719, allocations: 7.953 kB / 432.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.2719, allocations: 21.64 kB / 432.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2721, allocations: 314 kB / 432.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.2722, allocations: 63.94 kB / 432.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2724, allocations: 86.53 kB / 432.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.2728, allocations: 162.4 kB / 432.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2728, allocations: 0 / 432.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005646/0.2733, allocations: 268.9 kB / 433.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2734, allocations: 11.94 kB / 433.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2734, allocations: 0 / 433.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2734, allocations: 0 / 433.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.2736, allocations: 15.98 kB / 433.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.2736, allocations: 0 / 433.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.2738, allocations: 7.984 kB / 433.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.2738, allocations: 4 kB / 433.1 MB, free: 11.55 MB / 350.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.0003451/0.2741, allocations: 349.7 kB / 433.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.2743, allocations: 87.44 kB / 433.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006086/0.2749, allocations: 277.5 kB / 433.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2749, allocations: 3.938 kB / 433.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2749, allocations: 0 / 433.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2749, allocations: 0 / 433.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005796/0.2755, allocations: 0.5182 MB / 434.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2755, allocations: 0 / 434.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.587e-05/0.2756, allocations: 11.98 kB / 434.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2756, allocations: 4 kB / 434.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2756, allocations: 0 / 434.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2756, allocations: 4 kB / 434.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2756, allocations: 0 / 434.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.2761, allocations: 323.3 kB / 434.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.2764, allocations: 236.4 kB / 434.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.2765, allocations: 4 kB / 434.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.2767, allocations: 11.92 kB / 434.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.2767, allocations: 0 / 434.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.2767, allocations: 11.94 kB / 434.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001276/0.278, allocations: 1.017 MB / 436 MB, free: 8.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.278, allocations: 0 / 436 MB, free: 8.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.2783, allocations: 60 kB / 436 MB, free: 8.539 MB / 350.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.0002026/0.2785, allocations: 110 kB / 436.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.2789, allocations: 123.9 kB / 436.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2789, allocations: 0 / 436.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.2791, allocations: 55.89 kB / 436.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005854/0.2796, allocations: 110.1 kB / 436.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.2817, allocations: 1.379 MB / 437.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006836/0.2824, allocations: 0.9969 MB / 438.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006571/0.283, allocations: 478 kB / 439.2 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.2831, allocations: 35.44 kB / 439.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2831, allocations: 0 / 439.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of Templates: time 0.01574/0.2989, allocations: 7.484 MB / 446.8 MB, free: 13.76 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches