Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007614/0.0007615, allocations: 95.45 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002406, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2321, allocations: 51.41 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001939/0.2341, allocations: 1.577 MB / 413.6 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.2356, allocations: 1.476 MB / 415.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.467e-05/0.2357, allocations: 7.938 kB / 415.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008862/0.2366, allocations: 0.4924 MB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.2367, allocations: 191.5 kB / 415.8 MB, free: 22.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.2372, allocations: 313.8 kB / 416.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.2374, allocations: 223.2 kB / 416.3 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.07e-05/0.2375, allocations: 21.67 kB / 416.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2377, allocations: 123.5 kB / 416.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.2379, allocations: 203.5 kB / 416.6 MB, free: 21.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.238, allocations: 7.938 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.2381, allocations: 67.88 kB / 416.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.2383, allocations: 255.3 kB / 417 MB, free: 20.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.2384, allocations: 299.6 kB / 417.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.2389, allocations: 0.7432 MB / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2389, allocations: 0 / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2389, allocations: 0 / 418 MB, free: 19.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.239, allocations: 0 / 418 MB, free: 19.8 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.001951/0.2409, allocations: 1.073 MB / 419.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.241, allocations: 12.03 kB / 419.1 MB, free: 18.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.2411, allocations: 91.8 kB / 419.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007304/0.2419, allocations: 0.7469 MB / 419.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.2419, allocations: 384 / 419.9 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.2419, allocations: 8.312 kB / 419.9 MB, free: 17.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.2422, allocations: 121.9 kB / 420.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2422, allocations: 4 kB / 420.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2422, allocations: 0 / 420.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.2422, allocations: 0 / 420.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.2425, allocations: 159.9 kB / 420.2 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.2433, allocations: 0.8103 MB / 421 MB, free: 16.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.2435, allocations: 94.47 kB / 421.1 MB, free: 16.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.2436, allocations: 80.89 kB / 421.2 MB, free: 16.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2437, allocations: 3.984 kB / 421.2 MB, free: 16.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.2437, allocations: 38.56 kB / 421.2 MB, free: 16.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.2437, allocations: 0 / 421.2 MB, free: 16.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006789/0.2444, allocations: 348.3 kB / 421.6 MB, free: 16.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.2444, allocations: 51.41 kB / 421.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.2456, allocations: 1.401 MB / 423 MB, free: 14.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.2457, allocations: 25.7 kB / 423.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.2459, allocations: 388.4 kB / 423.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2459, allocations: 7.844 kB / 423.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.2459, allocations: 4 kB / 423.4 MB, free: 14.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.864e-05/0.246, allocations: 306 kB / 423.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.2462, allocations: 75.94 kB / 423.8 MB, free: 13.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.2463, allocations: 90.52 kB / 423.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.2466, allocations: 174.3 kB / 424.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2466, allocations: 0 / 424.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004632/0.2471, allocations: 276.5 kB / 424.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2471, allocations: 5.875 kB / 424.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.2471, allocations: 0 / 424.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2472, allocations: 4 kB / 424.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.2473, allocations: 19.98 kB / 424.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.2474, allocations: 3.938 kB / 424.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/0.2475, allocations: 16.02 kB / 424.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.2476, allocations: 4 kB / 424.4 MB, free: 13.15 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.0002356/0.2478, allocations: 341.6 kB / 424.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.248, allocations: 90.86 kB / 424.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005341/0.2485, allocations: 293.5 kB / 425.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2485, allocations: 0 / 425.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2485, allocations: 0 / 425.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2485, allocations: 7.984 kB / 425.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003883/0.2489, allocations: 0.5143 MB / 425.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2489, allocations: 0 / 425.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.966e-05/0.249, allocations: 11.98 kB / 425.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.249, allocations: 0 / 425.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.2491, allocations: 4 kB / 425.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2491, allocations: 0 / 425.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2491, allocations: 0 / 425.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004098/0.2495, allocations: 334.7 kB / 426 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.2497, allocations: 224 kB / 426.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.2498, allocations: 0 / 426.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.25, allocations: 8 kB / 426.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.25, allocations: 11.98 kB / 426.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.2501, allocations: 8 kB / 426.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009853/0.251, allocations: 1.005 MB / 427.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2511, allocations: 0 / 427.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000301/0.2514, allocations: 67.98 kB / 427.3 MB, free: 10.14 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.0002108/0.2516, allocations: 116.1 kB / 427.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003635/0.252, allocations: 143.8 kB / 427.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.252, allocations: 0 / 427.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.2521, allocations: 56.14 kB / 427.6 MB, free: 9.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005571/0.2527, allocations: 109.6 kB / 427.7 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.2542, allocations: 1.558 MB / 429.3 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.2547, allocations: 0.9933 MB / 430.3 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005019/0.2552, allocations: 474.3 kB / 430.7 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.83e-05/0.2553, allocations: 43.42 kB / 430.8 MB, free: 6.602 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2553, allocations: 4 kB / 430.8 MB, free: 6.598 MB / 298.7 MB Notification: Performance of Templates: time 0.01109/0.2664, allocations: 6.987 MB / 437.8 MB, free: 15.63 MB / 314.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/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