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.001747/0.001747, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00234/0.00234, allocations: 209 kB / 24.48 MB, free: 3.938 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.562/1.562, allocations: 230.6 MB / 258.2 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.001611/0.001611, allocations: 47.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2912, allocations: 53.37 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007955/0.2991, allocations: 5.413 MB / 437.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003872/0.303, allocations: 2.174 MB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003767/0.3034, allocations: 23.88 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.3048, allocations: 0.6058 MB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008498/0.3056, allocations: 457.7 kB / 441 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000863/0.3065, allocations: 414.5 kB / 441.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001478/0.308, allocations: 1.313 MB / 442.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005214/0.3085, allocations: 290.4 kB / 443 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005954/0.3091, allocations: 0.5023 MB / 443.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007379/0.3098, allocations: 0.5642 MB / 444 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.31, allocations: 120 kB / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/0.3103, allocations: 183.9 kB / 444.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005512/0.3109, allocations: 0.6544 MB / 445 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006719/0.3115, allocations: 0.668 MB / 445.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.3142, allocations: 2.662 MB / 448.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.3142, allocations: 4 kB / 448.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3142, allocations: 0 / 448.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.502e-05/0.3143, allocations: 0 / 448.3 MB, free: 6.66 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.004191/0.3184, allocations: 2.37 MB / 450.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3185, allocations: 8.031 kB / 450.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003336/0.3188, allocations: 223.5 kB / 450.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.3218, allocations: 1.635 MB / 452.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/0.3219, allocations: 185.8 kB / 452.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.322, allocations: 67.95 kB / 452.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.3238, allocations: 1.177 MB / 454 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3238, allocations: 3.938 kB / 454 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.3238, allocations: 28 kB / 454 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.3239, allocations: 23.88 kB / 454 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.3249, allocations: 0.5399 MB / 454.6 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006014/0.331, allocations: 3.502 MB / 458.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3323, allocations: 0.5035 MB / 458.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008054/0.3331, allocations: 343.7 kB / 458.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.3331, allocations: 4.219 kB / 458.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.3332, allocations: 42.84 kB / 459 MB, free: 11.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.705e-06/0.3332, allocations: 7.938 kB / 459 MB, free: 11.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002403/0.3356, allocations: 0.8691 MB / 459.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.3357, allocations: 269 kB / 460.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.3401, allocations: 3.104 MB / 463.2 MB, free: 7.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.954e-05/0.3402, allocations: 37.7 kB / 463.3 MB, free: 7.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009034/0.3411, allocations: 0.8727 MB / 464.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.3412, allocations: 119 kB / 464.2 MB, free: 6.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.3414, allocations: 98.14 kB / 464.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3415, allocations: 322 kB / 464.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005005/0.342, allocations: 212.9 kB / 464.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007722/0.3428, allocations: 0.5887 MB / 465.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3438, allocations: 0.5244 MB / 466 MB, free: 4.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3438, allocations: 0 / 466 MB, free: 4.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001676/0.3455, allocations: 0.7817 MB / 466.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3455, allocations: 4 kB / 466.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3455, allocations: 4 kB / 466.8 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003065/0.3458, allocations: 68.81 kB / 466.8 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.3463, allocations: 120 kB / 466.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.3482, allocations: 1.66 MB / 468.6 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000618/0.3488, allocations: 63.7 kB / 468.7 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.3489, allocations: 20 kB / 468.7 MB, free: 1.492 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.001027/0.3499, allocations: 0.6603 MB / 469.3 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.3502, allocations: 186.7 kB / 469.5 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002968/0.3505, allocations: 214.1 kB / 469.7 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3505, allocations: 4.094 kB / 469.7 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3505, allocations: 4 kB / 469.7 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3505, allocations: 3.984 kB / 469.7 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003652/0.3541, allocations: 1.832 MB / 471.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3542, allocations: 8.047 kB / 471.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004075/0.3546, allocations: 83.89 kB / 471.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/0.3548, allocations: 56.81 kB / 471.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.3548, allocations: 8 kB / 471.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.3566, allocations: 1.609 MB / 473.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3566, allocations: 4.031 kB / 473.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.3586, allocations: 0.9803 MB / 474.3 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009989/0.3596, allocations: 378.4 kB / 474.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.3598, allocations: 15.98 kB / 474.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005145/0.3603, allocations: 51.95 kB / 474.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.3604, allocations: 39.94 kB / 474.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.3604, allocations: 15.98 kB / 474.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003386/0.3638, allocations: 2.211 MB / 477 MB, free: 8.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3638, allocations: 0 / 477 MB, free: 8.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009992/0.3648, allocations: 263.5 kB / 477.3 MB, free: 8.676 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.001921/0.3667, allocations: 0.4912 MB / 477.8 MB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.3681, allocations: 0.5901 MB / 478.4 MB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3681, allocations: 0 / 478.4 MB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000661/0.3688, allocations: 354.6 kB / 478.7 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.3699, allocations: 270.5 kB / 479 MB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/0.3761, allocations: 3.713 MB / 482.7 MB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.3773, allocations: 0.9002 MB / 483.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.3777, allocations: 87.44 kB / 483.7 MB, free: 2.387 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3777, allocations: 0 / 483.7 MB, free: 2.387 MB / 382.1 MB Notification: Performance of Templates: time 0.04339/0.4211, allocations: 29.78 MB / 0.5014 GB, free: 4.637 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/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: 9.361660680733621]