Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000843/0.000843, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001109/0.001952, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007046/0.0007046, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001047/0.001751, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.013/1.013, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09688/1.11, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.72e-07/8.72e-07, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.139e-05/2.226e-05, allocations: 6.25 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002911/0.002933, allocations: 2 MB / 246.7 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.004615, allocations: 1.23 MB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.32e-05/0.004708, allocations: 8 kB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009369/0.005645, allocations: 0.51 MB / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002473/0.005892, allocations: 195.4 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.006258, allocations: 171.2 kB / 248.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.006587, allocations: 227 kB / 249 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.73e-05/0.006664, allocations: 10.47 kB / 249 MB, free: 9.875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003254/0.006989, allocations: 209.7 kB / 249.2 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.007207, allocations: 183.7 kB / 249.4 MB, free: 9.488 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.007233, allocations: 4 kB / 249.4 MB, free: 9.484 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.007396, allocations: 63.91 kB / 249.5 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.007566, allocations: 267.3 kB / 249.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.007692, allocations: 99.5 kB / 249.8 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005476/0.008239, allocations: 0.5019 MB / 250.3 MB, free: 8.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.008251, allocations: 0 / 250.3 MB, free: 8.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.008252, allocations: 0 / 250.3 MB, free: 8.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.008265, allocations: 4 kB / 250.3 MB, free: 8.555 MB / 250.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.001803/0.01007, allocations: 1.219 MB / 251.6 MB, free: 7.289 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.0101, allocations: 8.031 kB / 251.6 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.01027, allocations: 48.88 kB / 251.6 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.01076, allocations: 447.5 kB / 252.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.01078, allocations: 4.375 kB / 252.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.01079, allocations: 4.375 kB / 252.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.01096, allocations: 66.91 kB / 252.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.01097, allocations: 192 / 252.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.01098, allocations: 4.375 kB / 252.1 MB, free: 6.672 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.01099, allocations: 7.938 kB / 252.1 MB, free: 6.664 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.038e-05/0.01105, allocations: 15.92 kB / 252.2 MB, free: 6.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.0115, allocations: 232.2 kB / 252.4 MB, free: 6.406 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.01164, allocations: 34.58 kB / 252.4 MB, free: 6.363 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.271e-05/0.01168, allocations: 16.84 kB / 252.4 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.01169, allocations: 0 / 252.4 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.01171, allocations: 34.56 kB / 252.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.01171, allocations: 0 / 252.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.000293/0.012, allocations: 109.5 kB / 252.6 MB, free: 6.188 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.01203, allocations: 51.41 kB / 252.6 MB, free: 6.125 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.01268, allocations: 0.7468 MB / 253.4 MB, free: 5.359 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.0127, allocations: 29.7 kB / 253.4 MB, free: 5.324 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-05/0.0128, allocations: 202.4 kB / 253.6 MB, free: 5.121 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.01282, allocations: 7.891 kB / 253.6 MB, free: 5.113 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.01285, allocations: 17.72 kB / 253.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.228e-05/0.01292, allocations: 310 kB / 253.9 MB, free: 4.781 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.382e-05/0.01294, allocations: 4 kB / 253.9 MB, free: 4.777 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.996e-05/0.01296, allocations: 11.94 kB / 253.9 MB, free: 4.766 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/0.01301, allocations: 24.78 kB / 254 MB, free: 4.738 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01301, allocations: 4 kB / 254 MB, free: 4.734 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001634/0.01318, allocations: 89.62 kB / 254.1 MB, free: 4.641 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.01319, allocations: 8 kB / 254.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.01319, allocations: 0 / 254.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.01321, allocations: 3.938 kB / 254.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.01332, allocations: 15.98 kB / 254.1 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.01332, allocations: 3.984 kB / 254.1 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.937e-05/0.01339, allocations: 4 kB / 254.1 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.0134, allocations: 4 kB / 254.1 MB, free: 4.602 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 8.974e-05/0.01349, allocations: 112.7 kB / 254.2 MB, free: 4.48 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.933e-05/0.01358, allocations: 47.94 kB / 254.3 MB, free: 4.434 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.01378, allocations: 197.7 kB / 254.4 MB, free: 4.234 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.01379, allocations: 7.922 kB / 254.5 MB, free: 4.227 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.01379, allocations: 4 kB / 254.5 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.01379, allocations: 0 / 254.5 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.01407, allocations: 341.2 kB / 254.8 MB, free: 3.871 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.01408, allocations: 4 kB / 254.8 MB, free: 3.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.897e-05/0.01413, allocations: 11.98 kB / 254.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.01424, allocations: 99.41 kB / 254.9 MB, free: 3.758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.01424, allocations: 0 / 254.9 MB, free: 3.758 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.01425, allocations: 7.984 kB / 254.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.01425, allocations: 3.938 kB / 254.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01425, allocations: 0 / 254.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.01443, allocations: 238.6 kB / 255.1 MB, free: 3.496 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.01446, allocations: 8 kB / 255.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.79e-05/0.01454, allocations: 0 / 255.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.342e-05/0.01457, allocations: 19.92 kB / 255.2 MB, free: 3.469 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.01457, allocations: 0 / 255.2 MB, free: 3.469 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002867/0.01486, allocations: 387.7 kB / 255.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01486, allocations: 0 / 255.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001839/0.01504, allocations: 71.92 kB / 255.6 MB, free: 3.008 MB / 250.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.0001445/0.01519, allocations: 84.41 kB / 255.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.021e-05/0.01528, allocations: 36.78 kB / 255.7 MB, free: 2.879 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.01529, allocations: 8 kB / 255.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.451e-05/0.01533, allocations: 20.84 kB / 255.8 MB, free: 2.848 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008525/0.01618, allocations: 0.8258 MB / 256.6 MB, free: 1.879 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.0184, allocations: 1.105 MB / 257.7 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.01854, allocations: 193.2 kB / 257.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003372/0.01887, allocations: 370.2 kB / 258.2 MB, free: 168 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.01908, allocations: 139.3 kB / 258.4 MB, free: 28 kB / 250.7 MB Notification: Performance of SimCode: time 1.573e-06/0.01908, allocations: 0 / 258.4 MB, free: 28 kB / 250.7 MB Notification: Performance of Templates: time 0.01119/0.03027, allocations: 8.567 MB / 267 MB, free: 7.586 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7033850234001875]