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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007409/0.0007409, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001017/0.001758, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006668/0.0006668, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000894/0.001561, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9333/0.9333, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08804/1.021, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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=10000,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=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.751e-05, allocations: 2.312 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005553/0.005571, allocations: 1.978 MB / 241.5 MB, free: 1.203 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.006924, allocations: 1.211 MB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.321e-05/0.006997, allocations: 3.938 kB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007979/0.007795, allocations: 0.5138 MB / 243.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.007997, allocations: 199.3 kB / 243.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.008306, allocations: 171.2 kB / 243.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003459/0.01176, allocations: 231 kB / 243.8 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.01186, allocations: 10.47 kB / 243.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003986/0.01226, allocations: 201.6 kB / 244 MB, free: 14.67 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003073/0.01256, allocations: 183.7 kB / 244.2 MB, free: 14.49 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.01259, allocations: 12 kB / 244.2 MB, free: 14.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.01279, allocations: 63.84 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.01299, allocations: 255.3 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.01314, allocations: 103.5 kB / 244.6 MB, free: 14.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006536/0.01379, allocations: 0.498 MB / 245.1 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.617e-05/0.01381, allocations: 0 / 245.1 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01381, allocations: 0 / 245.1 MB, free: 13.56 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.01383, allocations: 4 kB / 245.1 MB, free: 13.56 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.0023/0.01613, allocations: 1.23 MB / 246.4 MB, free: 12.28 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.01617, allocations: 8.031 kB / 246.4 MB, free: 12.27 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.01635, allocations: 48.88 kB / 246.4 MB, free: 12.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007017/0.01705, allocations: 447.5 kB / 246.9 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.01707, allocations: 4.375 kB / 246.9 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.01709, allocations: 4.375 kB / 246.9 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.01728, allocations: 74.89 kB / 246.9 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.01729, allocations: 192 / 246.9 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.0173, allocations: 384 / 246.9 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/0.01731, allocations: 3.938 kB / 246.9 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.589e-05/0.01741, allocations: 15.98 kB / 247 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.018, allocations: 228.2 kB / 247.2 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.01819, allocations: 38.56 kB / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.444e-05/0.01823, allocations: 20.83 kB / 247.2 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.01824, allocations: 4 kB / 247.2 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.01827, allocations: 38.5 kB / 247.3 MB, free: 11.28 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.753e-06/0.01827, allocations: 0 / 247.3 MB, free: 11.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003344/0.01861, allocations: 101.5 kB / 247.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.01864, allocations: 55.41 kB / 247.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008932/0.01954, allocations: 0.7429 MB / 248.2 MB, free: 10.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.01956, allocations: 25.7 kB / 248.2 MB, free: 10.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.01971, allocations: 198.5 kB / 248.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.01974, allocations: 15.83 kB / 248.4 MB, free: 10.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.01979, allocations: 21.7 kB / 248.4 MB, free: 10.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.01999, allocations: 314 kB / 248.7 MB, free: 9.762 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.852e-05/0.02002, allocations: 4 kB / 248.7 MB, free: 9.758 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.139e-05/0.02004, allocations: 7.984 kB / 248.8 MB, free: 9.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.257e-05/0.02009, allocations: 20.84 kB / 248.8 MB, free: 9.727 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.02009, allocations: 0 / 248.8 MB, free: 9.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001637/0.02026, allocations: 97.56 kB / 248.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.02027, allocations: 4 kB / 248.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.02027, allocations: 0 / 248.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.02028, allocations: 3.938 kB / 248.9 MB, free: 9.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.0204, allocations: 15.98 kB / 248.9 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-06/0.0204, allocations: 4 kB / 248.9 MB, free: 9.598 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.297e-05/0.02047, allocations: 7.984 kB / 248.9 MB, free: 9.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.02048, allocations: 0 / 248.9 MB, free: 9.59 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 9.312e-05/0.02058, allocations: 112.7 kB / 249 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.273e-05/0.02067, allocations: 55.92 kB / 249.1 MB, free: 9.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.02089, allocations: 197.7 kB / 249.3 MB, free: 9.215 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.0209, allocations: 11.92 kB / 249.3 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.0209, allocations: 0 / 249.3 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.0209, allocations: 0 / 249.3 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.02119, allocations: 337.2 kB / 249.6 MB, free: 8.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.0212, allocations: 0 / 249.6 MB, free: 8.855 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.02124, allocations: 11.98 kB / 249.6 MB, free: 8.844 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.02136, allocations: 111.3 kB / 249.7 MB, free: 8.734 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.02136, allocations: 0 / 249.7 MB, free: 8.734 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.02136, allocations: 4 kB / 249.7 MB, free: 8.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.02137, allocations: 3.938 kB / 249.7 MB, free: 8.727 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.02137, allocations: 0 / 249.7 MB, free: 8.727 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.02154, allocations: 242.6 kB / 250 MB, free: 8.473 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.02157, allocations: 3.938 kB / 250 MB, free: 8.469 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.02166, allocations: 7.984 kB / 250 MB, free: 8.461 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.02169, allocations: 3.938 kB / 250 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.0217, allocations: 11.98 kB / 250 MB, free: 8.445 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003112/0.02202, allocations: 383.7 kB / 250.4 MB, free: 8.059 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02202, allocations: 0 / 250.4 MB, free: 8.059 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001837/0.0222, allocations: 63.94 kB / 250.4 MB, free: 7.996 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.0001302/0.02233, allocations: 96.41 kB / 250.5 MB, free: 7.891 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.267e-05/0.02241, allocations: 20.84 kB / 250.5 MB, free: 7.867 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/0.02242, allocations: 15.98 kB / 250.6 MB, free: 7.852 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.665e-05/0.02246, allocations: 24.78 kB / 250.6 MB, free: 7.824 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.0228, allocations: 140.1 kB / 250.7 MB, free: 7.688 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.02506, allocations: 1.101 MB / 251.8 MB, free: 6.547 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.02519, allocations: 193.2 kB / 252 MB, free: 6.336 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003124/0.0255, allocations: 378.5 kB / 252.4 MB, free: 5.965 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.0257, allocations: 143.2 kB / 252.5 MB, free: 5.824 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.0257, allocations: 0 / 252.5 MB, free: 5.824 MB / 250.7 MB Notification: Performance of Templates: time 0.01099/0.03668, allocations: 8.579 MB / 261.1 MB, free: 13.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.499008164741099]