Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 115.7 kB / 17.07 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 192 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 55.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3038, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003212/0.3071, allocations: 1.909 MB / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3089, allocations: 1.238 MB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.156e-05/0.3091, allocations: 0 / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.3101, allocations: 0.5036 MB / 404.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.3104, allocations: 187.4 kB / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004494/0.3108, allocations: 171.3 kB / 404.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.3112, allocations: 243.1 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.756e-05/0.3113, allocations: 21.69 kB / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.3115, allocations: 115.6 kB / 405.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.3118, allocations: 219.4 kB / 405.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.3118, allocations: 8 kB / 405.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.3119, allocations: 63.95 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.3122, allocations: 263.3 kB / 405.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.3124, allocations: 273.9 kB / 405.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000759/0.3132, allocations: 0.7782 MB / 406.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3132, allocations: 0 / 406.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3132, allocations: 0 / 406.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3132, allocations: 0 / 406.7 MB, free: 2.918 MB / 318.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.002591/0.3158, allocations: 1.174 MB / 407.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3159, allocations: 12.03 kB / 407.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.3161, allocations: 91.8 kB / 407.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009882/0.3171, allocations: 0.7431 MB / 408.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.3171, allocations: 8.359 kB / 408.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.3171, allocations: 384 / 408.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.3174, allocations: 125.9 kB / 408.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3174, allocations: 0 / 408.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.3174, allocations: 0 / 408.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.3174, allocations: 0 / 408.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.3178, allocations: 151.8 kB / 409 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009021/0.3187, allocations: 0.8065 MB / 409.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.3189, allocations: 86.52 kB / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.3191, allocations: 80.83 kB / 409.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.3191, allocations: 7.984 kB / 409.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.3191, allocations: 30.56 kB / 410 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.3191, allocations: 0 / 410 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007514/0.3199, allocations: 332.3 kB / 410.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.3199, allocations: 55.34 kB / 410.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.3215, allocations: 1.401 MB / 411.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.3215, allocations: 29.7 kB / 411.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.3218, allocations: 392.4 kB / 412.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.3219, allocations: 3.906 kB / 412.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.322, allocations: 25.7 kB / 412.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3221, allocations: 306 kB / 412.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.3222, allocations: 71.94 kB / 412.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.3224, allocations: 86.52 kB / 412.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.3228, allocations: 158.3 kB / 412.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3228, allocations: 0 / 412.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005753/0.3234, allocations: 272.4 kB / 413.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3234, allocations: 4 kB / 413.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3234, allocations: 4 kB / 413.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3234, allocations: 0 / 413.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.3236, allocations: 19.98 kB / 413.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.3236, allocations: 0 / 413.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.3238, allocations: 7.984 kB / 413.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.3239, allocations: 4 kB / 413.1 MB, free: 12.2 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.0003319/0.3242, allocations: 345.7 kB / 413.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.3244, allocations: 86.95 kB / 413.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005688/0.3249, allocations: 277.6 kB / 413.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.325, allocations: 0 / 413.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.325, allocations: 7.984 kB / 413.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.325, allocations: 0 / 413.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.3255, allocations: 0.5104 MB / 414.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3255, allocations: 0 / 414.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.167e-05/0.3256, allocations: 11.98 kB / 414.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.3256, allocations: 0 / 414.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.3256, allocations: 4 kB / 414.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3256, allocations: 0 / 414.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3257, allocations: 11.92 kB / 414.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000469/0.3261, allocations: 318.7 kB / 414.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002843/0.3264, allocations: 227.9 kB / 414.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.3265, allocations: 0 / 414.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.3267, allocations: 4 kB / 414.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.3267, allocations: 15.98 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.3268, allocations: 0 / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.328, allocations: 1.013 MB / 415.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.328, allocations: 0 / 415.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003509/0.3283, allocations: 71.92 kB / 416 MB, free: 9.207 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.0002078/0.3285, allocations: 112 kB / 416.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003775/0.3289, allocations: 135.8 kB / 416.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3289, allocations: 0 / 416.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.3291, allocations: 55.95 kB / 416.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.3297, allocations: 107.5 kB / 416.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.3316, allocations: 1.361 MB / 417.7 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006705/0.3322, allocations: 0.9968 MB / 418.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006488/0.3329, allocations: 474.3 kB / 419.2 MB, free: 5.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.333, allocations: 35.44 kB / 419.2 MB, free: 5.879 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.333, allocations: 4 kB / 419.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of Templates: time 0.01479/0.3478, allocations: 7.489 MB / 426.7 MB, free: 14.43 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches