Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009366/0.0009366, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001367/0.002304, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001693/0.001693, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001816/0.003509, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.025/1.025, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1016/1.126, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.08e-05/2.209e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005455/0.005477, allocations: 5.918 MB / 251.1 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.009048, allocations: 2.344 MB / 253.5 MB, free: 5.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.00952, allocations: 19.88 kB / 253.5 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.01062, allocations: 0.6378 MB / 254.1 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008097/0.01143, allocations: 473.2 kB / 254.6 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.01212, allocations: 411.1 kB / 255 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.01333, allocations: 1.333 MB / 256.3 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.01378, allocations: 304.2 kB / 256.6 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.01481, allocations: 0.8566 MB / 257.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006489/0.01546, allocations: 486.9 kB / 257.9 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.0156, allocations: 116 kB / 258.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002885/0.01589, allocations: 171.9 kB / 258.2 MB, free: 456 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003409/0.01623, allocations: 0.6117 MB / 258.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003723/0.0166, allocations: 418.8 kB / 259.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.018, allocations: 1.417 MB / 260.7 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-05/0.01801, allocations: 4 kB / 260.7 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.01801, allocations: 0 / 260.7 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.054e-05/0.01806, allocations: 0 / 260.7 MB, free: 14 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002947/0.02101, allocations: 2.454 MB / 263.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.02106, allocations: 12.62 kB / 263.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002637/0.02133, allocations: 180.8 kB / 263.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.02249, allocations: 0.8943 MB / 264.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.02262, allocations: 186.3 kB / 264.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.454e-05/0.0227, allocations: 76.31 kB / 264.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008212/0.02352, allocations: 0.9223 MB / 265.4 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.02354, allocations: 0 / 265.4 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.426e-05/0.02358, allocations: 28 kB / 265.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.0236, allocations: 12 kB / 265.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.02384, allocations: 149 kB / 265.6 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003013/0.02686, allocations: 2.227 MB / 267.8 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.02728, allocations: 251.5 kB / 268 MB, free: 6.281 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.02751, allocations: 173.9 kB / 268.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.02754, allocations: 8.281 kB / 268.2 MB, free: 6.102 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.02757, allocations: 42.84 kB / 268.3 MB, free: 6.051 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.264e-06/0.02757, allocations: 4 kB / 268.3 MB, free: 6.047 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007553/0.02833, allocations: 371.4 kB / 268.6 MB, free: 5.676 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.02836, allocations: 55.41 kB / 268.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.03001, allocations: 1.814 MB / 270.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.03004, allocations: 33.7 kB / 270.5 MB, free: 3.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/0.03031, allocations: 0.4977 MB / 271 MB, free: 3.203 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.03038, allocations: 122.9 kB / 271.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.81e-05/0.03048, allocations: 90.11 kB / 271.2 MB, free: 2.984 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.602e-05/0.03057, allocations: 329.9 kB / 271.5 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.97e-05/0.03064, allocations: 48.91 kB / 271.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.03085, allocations: 425.9 kB / 272 MB, free: 2.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.03108, allocations: 271.9 kB / 272.3 MB, free: 1.758 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.03108, allocations: 0 / 272.3 MB, free: 1.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003921/0.03147, allocations: 345.5 kB / 272.6 MB, free: 1.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.03149, allocations: 11.94 kB / 272.6 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.0315, allocations: 4 kB / 272.6 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.03166, allocations: 45.3 kB / 272.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.03197, allocations: 135.8 kB / 272.8 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.0331, allocations: 1.437 MB / 274.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.03338, allocations: 59.66 kB / 274.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.0334, allocations: 12 kB / 274.3 MB, free: 15.62 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005331/0.03393, allocations: 140.5 kB / 274.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.03405, allocations: 115.8 kB / 274.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001406/0.03419, allocations: 162.1 kB / 274.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.03419, allocations: 4 kB / 274.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.0342, allocations: 0 / 274.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.0342, allocations: 4.062 kB / 274.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.03537, allocations: 1.01 MB / 275.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.03537, allocations: 0 / 275.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.03561, allocations: 100.5 kB / 275.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.03588, allocations: 246.6 kB / 276.1 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-05/0.03598, allocations: 40.95 kB / 276.1 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.036, allocations: 4 kB / 276.1 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007529/0.03675, allocations: 1.407 MB / 277.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.03675, allocations: 0 / 277.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.03721, allocations: 467.3 kB / 278 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.443e-05/0.03729, allocations: 16 kB / 278 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.0375, allocations: 39.97 kB / 278 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-05/0.03756, allocations: 35.94 kB / 278.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.03758, allocations: 11.98 kB / 278.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008065/0.03839, allocations: 0.994 MB / 279.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03839, allocations: 0 / 279.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005376/0.03892, allocations: 263.5 kB / 279.3 MB, free: 10.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002445/0.04137, allocations: 0.635 MB / 280 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006191/0.04199, allocations: 337.4 kB / 280.3 MB, free: 9.684 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.365e-05/0.04202, allocations: 21.41 kB / 280.3 MB, free: 9.664 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.04224, allocations: 239.7 kB / 280.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.04376, allocations: 1.989 MB / 282.5 MB, free: 7.102 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006705/0.05046, allocations: 2.798 MB / 285.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.05074, allocations: 403.4 kB / 285.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.05105, allocations: 166.8 kB / 285.9 MB, free: 3.656 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004533/0.0515, allocations: 321.2 kB / 286.2 MB, free: 3.344 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.0515, allocations: 0 / 286.2 MB, free: 3.344 MB / 282.7 MB Notification: Performance of Templates: time 0.1346/0.1861, allocations: 21.35 MB / 307.6 MB, free: 28.11 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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: 3.276597138494253]