Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001342/0.001342, allocations: 80.72 kB / 22.21 MB, free: 2.289 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.001433/0.001433, allocations: 151.3 kB / 25.59 MB, free: 8.891 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 0.9942/0.9942, allocations: 173.4 MB / 202.3 MB, free: 8.301 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.736e-05/1.877e-05, allocations: 5.281 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005073/0.005092, allocations: 5.779 MB / 275 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002786/0.007878, allocations: 2.096 MB / 277.1 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003502/0.008228, allocations: 27.81 kB / 277.1 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.009332, allocations: 0.6143 MB / 277.7 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006718/0.01, allocations: 421.5 kB / 278.1 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000688/0.01069, allocations: 411.2 kB / 278.5 MB, free: 444 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.01204, allocations: 1.333 MB / 279.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.01252, allocations: 294.3 kB / 280.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009984/0.01352, allocations: 0.7135 MB / 280.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006302/0.01415, allocations: 0.5105 MB / 281.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.01428, allocations: 112 kB / 281.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002407/0.01452, allocations: 179.8 kB / 281.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.01493, allocations: 0.6622 MB / 282.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000579/0.01551, allocations: 0.5258 MB / 282.8 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.01697, allocations: 1.456 MB / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.01698, allocations: 0 / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01698, allocations: 0 / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.77e-05/0.01704, allocations: 0 / 284.3 MB, free: 10.63 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.002754/0.01979, allocations: 2.465 MB / 286.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.01983, allocations: 8.031 kB / 286.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.02017, allocations: 279.4 kB / 287 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.02148, allocations: 1.061 MB / 288.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.02166, allocations: 182.4 kB / 288.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.363e-05/0.02175, allocations: 71.88 kB / 288.3 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.02298, allocations: 0.9225 MB / 289.3 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.023, allocations: 0 / 289.3 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.504e-05/0.02307, allocations: 28 kB / 289.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.02308, allocations: 20 kB / 289.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004459/0.02353, allocations: 180.9 kB / 289.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004831/0.02836, allocations: 3.048 MB / 292.5 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006642/0.02903, allocations: 276.9 kB / 292.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003932/0.02942, allocations: 188.1 kB / 293 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.02945, allocations: 8.281 kB / 293 MB, free: 1.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.02948, allocations: 45.61 kB / 293 MB, free: 1.441 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 2.765e-06/0.02949, allocations: 0 / 293 MB, free: 1.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001184/0.03067, allocations: 498.1 kB / 293.5 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.58e-05/0.03076, allocations: 265 kB / 293.8 MB, free: 0.625 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/0.03287, allocations: 2.085 MB / 295.9 MB, free: 14.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.0329, allocations: 33.7 kB / 295.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006773/0.03358, allocations: 1.073 MB / 297 MB, free: 13.37 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.608e-05/0.03367, allocations: 126.9 kB / 297.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.03379, allocations: 103.8 kB / 297.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.03393, allocations: 0.4964 MB / 297.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.102e-05/0.03402, allocations: 48.95 kB / 297.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.03428, allocations: 0.4951 MB / 298.2 MB, free: 11.94 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.03453, allocations: 294.3 kB / 298.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.03454, allocations: 4 kB / 298.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005598/0.03509, allocations: 491.4 kB / 299 MB, free: 11.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.03511, allocations: 8 kB / 299 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.03512, allocations: 4.078 kB / 299 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.03528, allocations: 51.59 kB / 299.1 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.03552, allocations: 107.8 kB / 299.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.03665, allocations: 2.094 MB / 301.3 MB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.03694, allocations: 59.66 kB / 301.3 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.03696, allocations: 15.94 kB / 301.3 MB, free: 8.641 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.0002278/0.03719, allocations: 187.9 kB / 301.5 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.03734, allocations: 194.8 kB / 301.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.03748, allocations: 174 kB / 301.9 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.03748, allocations: 4 kB / 301.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.03748, allocations: 0 / 301.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.03749, allocations: 3.984 kB / 301.9 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.03927, allocations: 1.396 MB / 303.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.03928, allocations: 4 kB / 303.3 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.03946, allocations: 63.95 kB / 303.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-05/0.03955, allocations: 43.59 kB / 303.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.03958, allocations: 12 kB / 303.4 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009027/0.04048, allocations: 2.056 MB / 305.5 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.04048, allocations: 128 / 305.5 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.04106, allocations: 0.638 MB / 306.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.04138, allocations: 298.6 kB / 306.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.34e-05/0.04148, allocations: 11.98 kB / 306.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.04169, allocations: 35.97 kB / 306.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.04177, allocations: 39.88 kB / 306.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.04179, allocations: 12 kB / 306.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009954/0.04278, allocations: 1.128 MB / 307.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04278, allocations: 8 kB / 307.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006275/0.04341, allocations: 255.6 kB / 307.9 MB, free: 1.875 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.001061/0.04447, allocations: 442.4 kB / 308.3 MB, free: 1.598 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005837/0.04506, allocations: 410.8 kB / 308.7 MB, free: 1.176 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.04506, allocations: 3.938 kB / 308.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.04531, allocations: 281.3 kB / 309 MB, free: 0.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007619/0.04607, allocations: 268.3 kB / 309.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/0.0506, allocations: 2.847 MB / 312.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.05093, allocations: 411.4 kB / 312.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.0513, allocations: 166.8 kB / 312.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004892/0.05179, allocations: 354 kB / 313 MB, free: 12.77 MB / 298.7 MB Notification: Performance of SimCode: time 1.433e-06/0.05179, allocations: 0 / 313 MB, free: 12.77 MB / 298.7 MB Notification: Performance of Templates: time 0.02855/0.08034, allocations: 20.72 MB / 333.7 MB, free: 8.234 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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.5294257048517466]