Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001319/0.001319, allocations: 85.36 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001513/0.001513, allocations: 164.7 kB / 23.96 MB, free: 4.164 MB / 14.72 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.471/1.471, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] 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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.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.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 3.938 kB / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.36e-05/2.567e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008768/0.008793, allocations: 5.421 MB / 330.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005115/0.01391, allocations: 2.193 MB / 332.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.01493, allocations: 23.81 kB / 332.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001889/0.01682, allocations: 0.6117 MB / 333.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001396/0.01821, allocations: 473.1 kB / 333.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.01927, allocations: 400.8 kB / 334.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.02122, allocations: 1.352 MB / 335.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005789/0.0218, allocations: 297.1 kB / 335.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.0228, allocations: 0.7213 MB / 336.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008172/0.02362, allocations: 0.5123 MB / 337 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.02381, allocations: 116.7 kB / 337.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004196/0.02423, allocations: 176.7 kB / 337.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006846/0.02491, allocations: 0.6595 MB / 338 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007093/0.02562, allocations: 0.5273 MB / 338.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002998/0.02862, allocations: 2.598 MB / 341.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.02862, allocations: 0 / 341.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.02862, allocations: 0 / 341.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.562e-05/0.02865, allocations: 0 / 341.1 MB, free: 5.105 MB / 302.1 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.004098/0.03275, allocations: 2.343 MB / 343.4 MB, free: 2.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.03278, allocations: 8.031 kB / 343.5 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003852/0.03317, allocations: 223.5 kB / 343.7 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002831/0.036, allocations: 1.631 MB / 345.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/0.0362, allocations: 182.4 kB / 345.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.03632, allocations: 75.88 kB / 345.6 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.03816, allocations: 1.185 MB / 346.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.03818, allocations: 0 / 346.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.03826, allocations: 28 kB / 346.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.03827, allocations: 16 kB / 346.8 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.03942, allocations: 0.5477 MB / 347.3 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005849/0.04527, allocations: 3.495 MB / 350.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.04667, allocations: 0.4981 MB / 351.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008466/0.04752, allocations: 342 kB / 351.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.04755, allocations: 288 / 351.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.04759, allocations: 46.83 kB / 351.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.513e-06/0.04759, allocations: 4 kB / 351.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.002485/0.05008, allocations: 0.8613 MB / 352.6 MB, free: 9.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.05025, allocations: 269 kB / 352.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/0.05455, allocations: 3.112 MB / 355.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.0546, allocations: 37.7 kB / 356 MB, free: 5.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009112/0.05551, allocations: 0.8804 MB / 356.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.05564, allocations: 119 kB / 357 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.05582, allocations: 98.08 kB / 357.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003035/0.05612, allocations: 322 kB / 357.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/0.05665, allocations: 212.9 kB / 357.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.05777, allocations: 0.5848 MB / 358.2 MB, free: 3.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.05886, allocations: 0.5245 MB / 358.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.05887, allocations: 0 / 358.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001758/0.06062, allocations: 0.774 MB / 359.5 MB, free: 2.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.06065, allocations: 4 kB / 359.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.06066, allocations: 4 kB / 359.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003654/0.06102, allocations: 80.62 kB / 359.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005143/0.06154, allocations: 120 kB / 359.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002345/0.06388, allocations: 1.66 MB / 361.3 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006283/0.06451, allocations: 67.84 kB / 361.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.06455, allocations: 20 kB / 361.4 MB, free: 15.95 MB / 334.1 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 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * 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.001128/0.06568, allocations: 0.6538 MB / 362.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/0.06596, allocations: 186.8 kB / 362.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003548/0.06631, allocations: 214.1 kB / 362.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.06632, allocations: 4 kB / 362.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.06633, allocations: 8 kB / 362.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.06633, allocations: 0 / 362.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003766/0.0701, allocations: 1.832 MB / 364.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.0701, allocations: 3.938 kB / 364.3 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004244/0.07052, allocations: 84 kB / 364.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002049/0.07073, allocations: 56.83 kB / 364.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.07076, allocations: 7.984 kB / 364.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.07268, allocations: 1.602 MB / 366.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.07269, allocations: 0 / 366.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.07504, allocations: 0.9767 MB / 367 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007934/0.07583, allocations: 370.6 kB / 367.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.07599, allocations: 16 kB / 367.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005446/0.07654, allocations: 51.95 kB / 367.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.07669, allocations: 51.84 kB / 367.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.07673, allocations: 8 kB / 367.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.003627/0.08036, allocations: 2.215 MB / 369.7 MB, free: 7.426 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.08036, allocations: 0 / 369.7 MB, free: 7.426 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001014/0.08137, allocations: 263.5 kB / 370 MB, free: 7.168 MB / 334.1 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.001994/0.08336, allocations: 0.5085 MB / 370.5 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.08484, allocations: 0.5864 MB / 371.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.08484, allocations: 0 / 371.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007446/0.08559, allocations: 354.6 kB / 371.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.08688, allocations: 246.4 kB / 371.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006369/0.09325, allocations: 3.528 MB / 375.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.09445, allocations: 0.908 MB / 376.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008619/0.09531, allocations: 306.6 kB / 376.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/0.0956, allocations: 92.5 kB / 376.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.0956, allocations: 0 / 376.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of Templates: time 0.03779/0.1334, allocations: 19.07 MB / 395.6 MB, free: 13.86 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.053527541458607]