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.001425/0.001425, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 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.001389/0.001389, allocations: 147.8 kB / 24.98 MB, free: 8.816 MB / 18.57 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 1.057/1.057, allocations: 173.4 MB / 201.5 MB, free: 9.363 MB / 186.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.914e-06/1.914e-06, allocations: 0 / 268 MB, free: 6.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.765e-05, allocations: 6.25 kB / 268 MB, free: 6.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002536/0.002563, allocations: 1.928 MB / 270 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.004232, allocations: 1.191 MB / 271.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.67e-05/0.004328, allocations: 3.938 kB / 271.2 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009153/0.005244, allocations: 498.2 kB / 271.7 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.005438, allocations: 207.3 kB / 271.9 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.005815, allocations: 163.3 kB / 272 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003437/0.006159, allocations: 242 kB / 272.3 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.732e-05/0.006246, allocations: 9.797 kB / 272.3 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.006458, allocations: 143.6 kB / 272.4 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.006688, allocations: 215.7 kB / 272.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.006713, allocations: 8 kB / 272.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.006852, allocations: 63.83 kB / 272.7 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.00701, allocations: 267.3 kB / 272.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.007139, allocations: 139.4 kB / 273.1 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005271/0.007666, allocations: 0.5097 MB / 273.6 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.007669, allocations: 0 / 273.6 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.00767, allocations: 0 / 273.6 MB, free: 1.207 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.00768, allocations: 0 / 273.6 MB, free: 1.207 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.001782/0.009462, allocations: 1.28 MB / 274.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.009502, allocations: 8.922 kB / 274.9 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.009691, allocations: 92.33 kB / 275 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006491/0.01034, allocations: 0.5217 MB / 275.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.01036, allocations: 8.375 kB / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.01038, allocations: 8.297 kB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.01055, allocations: 70.91 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.01056, allocations: 192 / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.01058, allocations: 4.375 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.01058, allocations: 3.938 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.218e-05/0.01067, allocations: 19.98 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009237/0.01159, allocations: 0.7628 MB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.01179, allocations: 54.98 kB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.775e-05/0.01183, allocations: 27.69 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.01185, allocations: 4 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.01187, allocations: 41.31 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.01187, allocations: 0 / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003888/0.01226, allocations: 153.1 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.0123, allocations: 55.34 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.01335, allocations: 1.134 MB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.01337, allocations: 25.7 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.01383, allocations: 0.4955 MB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.316e-05/0.01386, allocations: 19.83 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.01391, allocations: 27.38 kB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.01404, allocations: 492.4 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/0.01408, allocations: 4 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.712e-05/0.01412, allocations: 11.98 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.83e-05/0.01421, allocations: 31.97 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01421, allocations: 0 / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002909/0.0145, allocations: 153 kB / 279.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.01452, allocations: 10.91 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.01452, allocations: 4 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.01454, allocations: 3.984 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.01465, allocations: 12 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.01466, allocations: 0 / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.929e-05/0.01475, allocations: 7.984 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.01476, allocations: 0 / 279.1 MB, free: 11.46 MB / 266.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 0.0001134/0.01487, allocations: 160.6 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.01501, allocations: 103.3 kB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.01528, allocations: 161.5 kB / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.01528, allocations: 0 / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.01529, allocations: 0 / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.01529, allocations: 3.984 kB / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.01577, allocations: 0.5371 MB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.01578, allocations: 0 / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.034e-05/0.01583, allocations: 11.92 kB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.01583, allocations: 0 / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.01584, allocations: 15.92 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.01585, allocations: 7.938 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.01585, allocations: 0 / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.01613, allocations: 296.1 kB / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.0163, allocations: 131.5 kB / 280.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.01635, allocations: 11.94 kB / 280.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.796e-05/0.01645, allocations: 0 / 280.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.0165, allocations: 11.97 kB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.0165, allocations: 0 / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000625/0.01713, allocations: 0.6539 MB / 281.2 MB, free: 9.289 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01713, allocations: 0 / 281.2 MB, free: 9.289 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002504/0.01738, allocations: 75.92 kB / 281.3 MB, free: 9.215 MB / 266.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.0002196/0.0176, allocations: 107.2 kB / 281.4 MB, free: 9.098 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000154/0.01775, allocations: 35.66 kB / 281.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.01776, allocations: 0 / 281.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.89e-05/0.01782, allocations: 23.69 kB / 281.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.01834, allocations: 104.2 kB / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.01992, allocations: 1.105 MB / 282.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.02007, allocations: 197.2 kB / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004058/0.02048, allocations: 426 kB / 283.3 MB, free: 7.152 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.186e-05/0.02057, allocations: 44.48 kB / 283.3 MB, free: 7.105 MB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.02057, allocations: 0 / 283.3 MB, free: 7.105 MB / 266.7 MB Notification: Performance of Templates: time 0.1147/0.1352, allocations: 7.984 MB / 291.3 MB, free: 33.39 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 -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: 3.0451060209888965]