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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001362/0.001361, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009979/0.0009979, allocations: 102.3 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008552/0.0008553, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2133, allocations: 50.46 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002613/0.2159, allocations: 1.956 MB / 409 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2172, allocations: 1.245 MB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.064e-05/0.2173, allocations: 4 kB / 410.3 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.2182, allocations: 0.4923 MB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.2183, allocations: 195.5 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.2187, allocations: 163.5 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002202/0.2189, allocations: 231.1 kB / 411.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.979e-05/0.219, allocations: 25.67 kB / 411.3 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.2192, allocations: 115.6 kB / 411.5 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.2194, allocations: 211.5 kB / 411.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.2194, allocations: 4 kB / 411.7 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.2195, allocations: 67.84 kB / 411.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.2197, allocations: 259.3 kB / 412 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.2198, allocations: 281.9 kB / 412.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004698/0.2203, allocations: 0.7433 MB / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2203, allocations: 0 / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.2203, allocations: 0 / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2204, allocations: 0 / 413 MB, free: 21.85 MB / 298.7 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.002287/0.2226, allocations: 1.185 MB / 414.2 MB, free: 20.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.2227, allocations: 8.594 kB / 414.2 MB, free: 20.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.2229, allocations: 83.91 kB / 414.3 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007847/0.2237, allocations: 0.7547 MB / 415 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.2237, allocations: 4.375 kB / 415 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.2237, allocations: 384 / 415 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.224, allocations: 121.9 kB / 415.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.224, allocations: 0 / 415.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.224, allocations: 0 / 415.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.224, allocations: 3.938 kB / 415.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.2243, allocations: 143.9 kB / 415.3 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008718/0.2252, allocations: 0.8142 MB / 416.1 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.2254, allocations: 90.45 kB / 416.2 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.2255, allocations: 76.89 kB / 416.3 MB, free: 18.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.2256, allocations: 0 / 416.3 MB, free: 18.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.2256, allocations: 30.56 kB / 416.3 MB, free: 18.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.2256, allocations: 4 kB / 416.3 MB, free: 18.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006802/0.2263, allocations: 320.5 kB / 416.6 MB, free: 18.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.2263, allocations: 59.33 kB / 416.7 MB, free: 17.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.2275, allocations: 1.405 MB / 418.1 MB, free: 16.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2275, allocations: 25.7 kB / 418.1 MB, free: 16.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.2277, allocations: 392.4 kB / 418.5 MB, free: 16.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.2278, allocations: 11.84 kB / 418.5 MB, free: 16.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.2278, allocations: 25.61 kB / 418.5 MB, free: 16.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.252e-05/0.2279, allocations: 310 kB / 418.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.228, allocations: 67.94 kB / 418.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.2282, allocations: 86.69 kB / 419 MB, free: 15.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.2285, allocations: 166.3 kB / 419.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2285, allocations: 0 / 419.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004624/0.2289, allocations: 264.5 kB / 419.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.229, allocations: 8.094 kB / 419.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.229, allocations: 0 / 419.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.229, allocations: 0 / 419.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.2292, allocations: 15.98 kB / 419.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2292, allocations: 0 / 419.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.2294, allocations: 15.98 kB / 419.5 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.2294, allocations: 4 kB / 419.5 MB, free: 15.13 MB / 298.7 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.0002465/0.2297, allocations: 347.1 kB / 419.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.2298, allocations: 90.88 kB / 419.9 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006134/0.2304, allocations: 277.2 kB / 420.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.2304, allocations: 4 kB / 420.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2305, allocations: 4 kB / 420.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2305, allocations: 0 / 420.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.2309, allocations: 0.5143 MB / 420.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2309, allocations: 0 / 420.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.579e-05/0.231, allocations: 15.98 kB / 420.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.231, allocations: 0 / 420.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.231, allocations: 3.984 kB / 420.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.231, allocations: 0 / 420.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.231, allocations: 0 / 420.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007793/0.2318, allocations: 1.109 MB / 421.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.2321, allocations: 220 kB / 422 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.2322, allocations: 3.984 kB / 422 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.2324, allocations: 7.984 kB / 422 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.2324, allocations: 15.92 kB / 422 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.2324, allocations: 0 / 422 MB, free: 12.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000888/0.2333, allocations: 1.013 MB / 423.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2333, allocations: 0 / 423.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004038/0.2337, allocations: 64 kB / 423.1 MB, free: 11.3 MB / 298.7 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.0001908/0.2339, allocations: 119.1 kB / 423.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.2343, allocations: 115.9 kB / 423.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2343, allocations: 0 / 423.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.2345, allocations: 55.95 kB / 423.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.235, allocations: 107.9 kB / 423.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2364, allocations: 1.643 MB / 425.2 MB, free: 9.219 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.2368, allocations: 0.9972 MB / 426.2 MB, free: 8.199 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004601/0.2373, allocations: 478 kB / 426.6 MB, free: 7.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.2374, allocations: 39.42 kB / 426.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2374, allocations: 0 / 426.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of Templates: time 0.01035/0.2478, allocations: 7.307 MB / 434 MB, free: 436 kB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches