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.001546/0.001546, allocations: 109.2 kB / 17.74 MB, free: 5.289 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.001735/0.001735, allocations: 184.3 kB / 18.67 MB, free: 4.371 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.458/1.458, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001118, allocations: 47.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2548, allocations: 49.45 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002803/0.2576, allocations: 1.894 MB / 403.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2592, allocations: 1.234 MB / 404.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.549e-05/0.2593, allocations: 4 kB / 404.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009134/0.2602, allocations: 0.5036 MB / 405 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.2604, allocations: 187.4 kB / 405.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.2608, allocations: 171.4 kB / 405.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.2611, allocations: 239.1 kB / 405.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.312e-05/0.2612, allocations: 21.69 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2614, allocations: 123.6 kB / 405.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.2617, allocations: 207.5 kB / 406 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.2617, allocations: 8 kB / 406 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.2619, allocations: 75.78 kB / 406 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.262, allocations: 263.3 kB / 406.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002106/0.2623, allocations: 277.9 kB / 406.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000655/0.2629, allocations: 0.7744 MB / 407.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2629, allocations: 0 / 407.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2629, allocations: 0 / 407.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.263, allocations: 0 / 407.4 MB, free: 2.902 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.00246/0.2654, allocations: 1.174 MB / 408.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2655, allocations: 8.031 kB / 408.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.2657, allocations: 91.81 kB / 408.6 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009779/0.2666, allocations: 0.7509 MB / 409.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.2667, allocations: 384 / 409.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.2667, allocations: 4.312 kB / 409.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.267, allocations: 125.8 kB / 409.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.267, allocations: 0 / 409.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.267, allocations: 0 / 409.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.267, allocations: 0 / 409.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.2674, allocations: 147.9 kB / 409.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009933/0.2684, allocations: 0.8065 MB / 410.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.2686, allocations: 90.45 kB / 410.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.2688, allocations: 76.88 kB / 410.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.2688, allocations: 4 kB / 410.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.2689, allocations: 34.56 kB / 410.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2689, allocations: 0 / 410.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008044/0.2697, allocations: 328.4 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.2697, allocations: 51.41 kB / 411 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.2712, allocations: 1.409 MB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.2713, allocations: 29.7 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002886/0.2716, allocations: 384.3 kB / 412.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.2716, allocations: 11.91 kB / 412.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.2716, allocations: 21.7 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.2717, allocations: 306 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.2719, allocations: 67.94 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.2721, allocations: 90.52 kB / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.2725, allocations: 150.5 kB / 413.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2725, allocations: 11.88 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005658/0.273, allocations: 268.4 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.2731, allocations: 8 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2731, allocations: 0 / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.2731, allocations: 0 / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.2733, allocations: 15.98 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2733, allocations: 3.984 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.2735, allocations: 11.94 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.2735, allocations: 96 / 413.8 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.0003333/0.2739, allocations: 349.6 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.274, allocations: 82.97 kB / 414.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006087/0.2747, allocations: 285.5 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.279e-06/0.2747, allocations: 4.031 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.2747, allocations: 4 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003596/0.2751, allocations: 227.9 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/0.2751, allocations: 0 / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.2753, allocations: 8 kB / 414.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.669e-05/0.2754, allocations: 7.922 kB / 414.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004122/0.2758, allocations: 224.9 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005073/0.2763, allocations: 386.2 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001514/0.2765, allocations: 51.95 kB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001253/0.2778, allocations: 1.013 MB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of Backend: time 8.31e-07/0.2778, allocations: 4 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.2785, allocations: 174.3 kB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of SimCode: time 0.002168/0.2806, allocations: 1.927 MB / 418.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of Templates: time 0.01347/0.2941, allocations: 7.878 MB / 426.4 MB, free: 15.5 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