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.001139/0.001139, allocations: 111.8 kB / 17.7 MB, free: 5.242 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.001048/0.001048, allocations: 187.7 kB / 18.64 MB, free: 4.316 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.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009819/0.0009819, allocations: 47.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2478, allocations: 49.43 MB / 401.3 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003143/0.2509, allocations: 1.902 MB / 403.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.2526, allocations: 1.226 MB / 404.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.2528, allocations: 0 / 404.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.254, allocations: 0.5074 MB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.2543, allocations: 199.4 kB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.2547, allocations: 167.4 kB / 405.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003306/0.2551, allocations: 230.8 kB / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.83e-05/0.2552, allocations: 33.66 kB / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.2554, allocations: 119.6 kB / 405.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.2556, allocations: 211.5 kB / 405.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.2557, allocations: 11.98 kB / 405.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2558, allocations: 67.83 kB / 406 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.256, allocations: 259.3 kB / 406.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.2562, allocations: 277.9 kB / 406.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006451/0.2569, allocations: 0.7744 MB / 407.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2569, allocations: 0 / 407.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2569, allocations: 0 / 407.3 MB, free: 2.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.2569, allocations: 3.984 kB / 407.3 MB, free: 2.914 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.002454/0.2594, allocations: 1.178 MB / 408.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2594, allocations: 8.031 kB / 408.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.2597, allocations: 91.8 kB / 408.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009247/0.2606, allocations: 0.7508 MB / 409.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2606, allocations: 384 / 409.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2606, allocations: 4.375 kB / 409.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.2609, allocations: 121.9 kB / 409.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2609, allocations: 7.938 kB / 409.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.261, allocations: 0 / 409.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.261, allocations: 0 / 409.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003451/0.2613, allocations: 143.9 kB / 409.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009638/0.2623, allocations: 0.8103 MB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.2625, allocations: 90.56 kB / 410.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2627, allocations: 72.8 kB / 410.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.2627, allocations: 4 kB / 410.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2628, allocations: 30.56 kB / 410.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.2628, allocations: 0 / 410.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007948/0.2636, allocations: 328.4 kB / 410.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.2636, allocations: 63.34 kB / 411 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.2652, allocations: 1.401 MB / 412.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2653, allocations: 25.7 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.2656, allocations: 392.4 kB / 412.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.2656, allocations: 3.906 kB / 412.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.2657, allocations: 21.72 kB / 412.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.2658, allocations: 310 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.266, allocations: 67.95 kB / 413.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.2662, allocations: 86.7 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003671/0.2665, allocations: 166.3 kB / 413.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2665, allocations: 0 / 413.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006056/0.2672, allocations: 264.5 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2672, allocations: 4 kB / 413.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2672, allocations: 7.984 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2672, allocations: 0 / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.2674, allocations: 19.97 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.2674, allocations: 8.094 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.2676, allocations: 7.938 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.2677, allocations: 7.984 kB / 413.7 MB, free: 12.19 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.0003239/0.268, allocations: 337.6 kB / 414.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.2682, allocations: 86.95 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006069/0.2688, allocations: 277.3 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.2688, allocations: 0 / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2688, allocations: 3.938 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2688, allocations: 4 kB / 414.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.2693, allocations: 0.5104 MB / 415 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.2694, allocations: 3.984 kB / 415 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.613e-05/0.2694, allocations: 15.98 kB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2695, allocations: 0 / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2695, allocations: 4 kB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2695, allocations: 0 / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2695, allocations: 0 / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.27, allocations: 318.7 kB / 415.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.2703, allocations: 227.9 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.2703, allocations: 4 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.2706, allocations: 7.984 kB / 415.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.2706, allocations: 12.06 kB / 415.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.2706, allocations: 4 kB / 415.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.2718, allocations: 1.013 MB / 416.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2718, allocations: 0 / 416.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.2722, allocations: 67.94 kB / 416.6 MB, free: 9.203 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.0001772/0.2724, allocations: 120 kB / 416.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.2728, allocations: 123.8 kB / 416.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2728, allocations: 0 / 416.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.273, allocations: 55.95 kB / 416.9 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.0005831/0.2736, allocations: 104.3 kB / 417 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.2755, allocations: 1.417 MB / 418.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006119/0.2762, allocations: 1.001 MB / 419.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.2763, allocations: 35.44 kB / 419.5 MB, free: 6.281 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2763, allocations: 4 kB / 419.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of Templates: time 0.01432/0.2906, allocations: 9.105 MB / 428.6 MB, free: 13.18 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/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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches