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.001452/0.001452, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.001756/0.001756, allocations: 207.5 kB / 24.48 MB, free: 3.695 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.441/1.441, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001526/0.001526, allocations: 55.91 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2578, allocations: 53.35 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007915/0.2657, allocations: 5.419 MB / 437.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003999/0.2697, allocations: 2.178 MB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004812/0.2702, allocations: 23.81 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.2716, allocations: 0.6059 MB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009442/0.2725, allocations: 461.6 kB / 441 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008935/0.2734, allocations: 414.4 kB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.275, allocations: 1.306 MB / 442.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005498/0.2755, allocations: 310.3 kB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006094/0.2761, allocations: 0.5061 MB / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007766/0.2769, allocations: 0.6073 MB / 444.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.2771, allocations: 116 kB / 444.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.2774, allocations: 176 kB / 444.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005635/0.2779, allocations: 0.6544 MB / 445 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007156/0.2786, allocations: 0.6758 MB / 445.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.2813, allocations: 2.666 MB / 448.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2813, allocations: 0 / 448.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2813, allocations: 0 / 448.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.2814, allocations: 0 / 448.4 MB, free: 6.598 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.004323/0.2857, allocations: 2.369 MB / 450.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2857, allocations: 8.031 kB / 450.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003509/0.2861, allocations: 227.5 kB / 451 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002937/0.289, allocations: 1.631 MB / 452.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.2892, allocations: 185.8 kB / 452.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.2893, allocations: 67.89 kB / 452.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.2911, allocations: 1.177 MB / 454 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.2911, allocations: 4 kB / 454.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.804e-05/0.2911, allocations: 24 kB / 454.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.2912, allocations: 16 kB / 454.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.2923, allocations: 0.5516 MB / 454.6 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006081/0.2983, allocations: 3.502 MB / 458.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.2997, allocations: 0.497 MB / 458.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007936/0.3005, allocations: 338.1 kB / 459 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.3005, allocations: 8.219 kB / 459 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.3006, allocations: 42.84 kB / 459 MB, free: 11.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 4.078e-06/0.3006, allocations: 4 kB / 459 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002505/0.3031, allocations: 0.8691 MB / 459.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.3032, allocations: 265 kB / 460.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004487/0.3077, allocations: 3.116 MB / 463.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.154e-05/0.3078, allocations: 33.7 kB / 463.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000898/0.3087, allocations: 0.8805 MB / 464.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3088, allocations: 119 kB / 464.3 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.309, allocations: 98.09 kB / 464.4 MB, free: 6.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3092, allocations: 326 kB / 464.7 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005121/0.3097, allocations: 208.9 kB / 464.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.3105, allocations: 0.5904 MB / 465.5 MB, free: 4.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.3115, allocations: 0.5204 MB / 466 MB, free: 4.266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3115, allocations: 4 kB / 466 MB, free: 4.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001808/0.3133, allocations: 0.7779 MB / 466.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3133, allocations: 10.81 kB / 466.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3133, allocations: 4 kB / 466.8 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003265/0.3137, allocations: 68.75 kB / 466.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/0.3142, allocations: 112.1 kB / 467 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.3161, allocations: 1.656 MB / 468.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/0.3168, allocations: 71.91 kB / 468.7 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/0.3169, allocations: 24 kB / 468.7 MB, free: 1.43 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.0009985/0.3179, allocations: 0.6537 MB / 469.4 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/0.3182, allocations: 182.8 kB / 469.6 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003481/0.3186, allocations: 218 kB / 469.8 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3186, allocations: 4 kB / 469.8 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3186, allocations: 0 / 469.8 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.3186, allocations: 4 kB / 469.8 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003851/0.3224, allocations: 1.836 MB / 471.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3224, allocations: 0 / 471.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004301/0.3229, allocations: 91.98 kB / 471.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.3231, allocations: 60.75 kB / 471.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.3231, allocations: 8 kB / 471.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.325, allocations: 1.609 MB / 473.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.325, allocations: 0 / 473.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.3273, allocations: 0.9845 MB / 474.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.3284, allocations: 362.7 kB / 474.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.3286, allocations: 19.94 kB / 474.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/0.3291, allocations: 59.94 kB / 474.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3292, allocations: 35.94 kB / 474.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.3293, allocations: 8 kB / 474.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003284/0.3325, allocations: 2.215 MB / 477.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3325, allocations: 0 / 477.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009537/0.3335, allocations: 267.5 kB / 477.3 MB, free: 8.621 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.001896/0.3354, allocations: 0.5015 MB / 477.8 MB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.3368, allocations: 0.5862 MB / 478.4 MB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3368, allocations: 4.312 kB / 478.4 MB, free: 7.727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006719/0.3375, allocations: 354.6 kB / 478.8 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.3387, allocations: 250.3 kB / 479 MB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006447/0.3452, allocations: 3.72 MB / 482.7 MB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.3463, allocations: 0.9002 MB / 483.6 MB, free: 2.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/0.3467, allocations: 95.42 kB / 483.7 MB, free: 2.324 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3467, allocations: 0 / 483.7 MB, free: 2.324 MB / 382.1 MB Notification: Performance of Templates: time 0.04485/0.3916, allocations: 29.78 MB / 0.5015 GB, free: 4.574 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.187361817021156]