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.001397/0.001397, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001543/0.001543, allocations: 215.8 kB / 23.73 MB, free: 4.16 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.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 0.001854/0.001854, allocations: 47.92 kB / 378.2 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2747, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.01207/0.2867, allocations: 5.411 MB / 437 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005857/0.2926, allocations: 2.178 MB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008711/0.2935, allocations: 19.88 kB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002435/0.2959, allocations: 0.6068 MB / 439.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001912/0.2978, allocations: 457.7 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.2995, allocations: 420.2 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002502/0.302, allocations: 1.317 MB / 442 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008755/0.3029, allocations: 286.4 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.3039, allocations: 0.4984 MB / 442.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.3052, allocations: 0.572 MB / 443.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004641/0.3056, allocations: 116 kB / 443.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005936/0.3062, allocations: 179.9 kB / 443.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008139/0.307, allocations: 0.6544 MB / 444.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.3083, allocations: 0.668 MB / 444.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004182/0.3125, allocations: 2.666 MB / 447.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.949e-06/0.3125, allocations: 3.984 kB / 447.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3125, allocations: 0 / 447.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.112e-05/0.3126, allocations: 4 kB / 447.6 MB, free: 6.625 MB / 350.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.006968/0.3196, allocations: 2.362 MB / 450 MB, free: 4.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.3196, allocations: 12.03 kB / 450 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007348/0.3203, allocations: 223.5 kB / 450.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004368/0.3247, allocations: 1.643 MB / 451.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.3249, allocations: 177.8 kB / 452 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.325, allocations: 63.95 kB / 452.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.327, allocations: 1.177 MB / 453.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.327, allocations: 3.938 kB / 453.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.3271, allocations: 32 kB / 453.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3271, allocations: 19.94 kB / 453.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.3283, allocations: 0.5438 MB / 453.8 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0064/0.3347, allocations: 3.502 MB / 457.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.3361, allocations: 0.4913 MB / 457.8 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007982/0.3369, allocations: 342 kB / 458.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.3369, allocations: 4.281 kB / 458.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.3369, allocations: 38.84 kB / 458.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.195e-06/0.3369, allocations: 0 / 458.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002412/0.3394, allocations: 0.8769 MB / 459.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/0.3395, allocations: 273 kB / 459.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004493/0.344, allocations: 3.108 MB / 462.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.3441, allocations: 33.7 kB / 462.5 MB, free: 7.215 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009061/0.345, allocations: 0.8766 MB / 463.4 MB, free: 6.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3451, allocations: 115 kB / 463.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.3453, allocations: 94.14 kB / 463.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3455, allocations: 326 kB / 463.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/0.3459, allocations: 216.9 kB / 464.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007699/0.3467, allocations: 0.5809 MB / 464.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.3477, allocations: 0.5283 MB / 465.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3477, allocations: 0 / 465.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001712/0.3495, allocations: 0.7894 MB / 466 MB, free: 3.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3495, allocations: 4 kB / 466 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3495, allocations: 4 kB / 466 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003023/0.3498, allocations: 65.08 kB / 466.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.3503, allocations: 119.8 kB / 466.2 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/0.3521, allocations: 1.656 MB / 467.8 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000641/0.3528, allocations: 71.62 kB / 467.9 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.3528, allocations: 20 kB / 467.9 MB, free: 1.461 MB / 366.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.001018/0.3539, allocations: 0.6616 MB / 468.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003331/0.3542, allocations: 186.8 kB / 468.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003527/0.3545, allocations: 218 kB / 469 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3546, allocations: 4 kB / 469 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3546, allocations: 0 / 469 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3546, allocations: 0 / 469 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.3582, allocations: 1.836 MB / 470.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3582, allocations: 128 / 470.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004118/0.3586, allocations: 87.88 kB / 470.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.3588, allocations: 56.89 kB / 471 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3588, allocations: 15.98 kB / 471 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.3605, allocations: 1.602 MB / 472.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3605, allocations: 4.031 kB / 472.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.3626, allocations: 0.9842 MB / 473.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.3637, allocations: 366.7 kB / 473.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.3639, allocations: 15.94 kB / 474 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.3644, allocations: 55.94 kB / 474 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.3645, allocations: 39.94 kB / 474 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.3646, allocations: 8 kB / 474.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003309/0.3679, allocations: 2.211 MB / 476.3 MB, free: 8.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3679, allocations: 7.938 kB / 476.3 MB, free: 8.906 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001037/0.3689, allocations: 271.5 kB / 476.5 MB, free: 8.641 MB / 382.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.001949/0.3709, allocations: 0.4885 MB / 477 MB, free: 8.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3724, allocations: 0.5899 MB / 477.6 MB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3724, allocations: 0 / 477.6 MB, free: 7.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007238/0.3731, allocations: 363.2 kB / 478 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.3745, allocations: 265.5 kB / 478.2 MB, free: 7.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006619/0.3811, allocations: 3.621 MB / 481.8 MB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.3822, allocations: 0.9041 MB / 482.8 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007989/0.383, allocations: 290.7 kB / 483 MB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.3833, allocations: 91.44 kB / 483.1 MB, free: 2.156 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3833, allocations: 0 / 483.1 MB, free: 2.156 MB / 382.1 MB Notification: Performance of Templates: time 0.03787/0.4211, allocations: 20.78 MB / 0.4921 GB, free: 13.56 MB / 414.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.43366601318121]