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.001667/0.001667, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 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.001853/0.001853, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 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 1.48/1.48, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.1 MB " [Timeout remaining time 178] 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.1..v|cell.cell.capacitor.2..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.1..v|cell.cell.capacitor.2..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 0.0015/0.0015, allocations: 55.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2639, allocations: 52.14 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008645/0.2726, allocations: 6.073 MB / 426.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004153/0.2767, allocations: 2.166 MB / 429.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006652/0.2774, allocations: 15.94 kB / 429.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.2792, allocations: 0.6263 MB / 429.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.2804, allocations: 405.8 kB / 430.1 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.2815, allocations: 410.2 kB / 430.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001999/0.2835, allocations: 1.313 MB / 431.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006853/0.2842, allocations: 307.5 kB / 432.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007953/0.285, allocations: 498.3 kB / 432.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009812/0.2859, allocations: 0.6072 MB / 433.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002389/0.2862, allocations: 120 kB / 433.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004035/0.2866, allocations: 175.9 kB / 433.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006196/0.2872, allocations: 0.6506 MB / 434.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.2884, allocations: 0.8855 MB / 435.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003083/0.2915, allocations: 2.638 MB / 437.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2915, allocations: 3.938 kB / 437.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2915, allocations: 0 / 437.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.294e-05/0.2915, allocations: 0 / 437.7 MB, free: 14.16 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.004266/0.2958, allocations: 2.429 MB / 440.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2958, allocations: 12.03 kB / 440.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003563/0.2962, allocations: 223.5 kB / 440.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002734/0.2989, allocations: 1.697 MB / 442.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.2991, allocations: 104.7 kB / 442.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.2992, allocations: 60 kB / 442.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3008, allocations: 0.8259 MB / 443 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.3008, allocations: 3.938 kB / 443.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.3009, allocations: 28 kB / 443.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.3009, allocations: 16 kB / 443.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.302, allocations: 0.5477 MB / 443.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006801/0.3088, allocations: 3.993 MB / 447.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3102, allocations: 0.4971 MB / 448.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007857/0.311, allocations: 345.1 kB / 448.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.311, allocations: 8.219 kB / 448.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.3111, allocations: 38.84 kB / 448.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.3111, allocations: 0 / 448.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002509/0.3136, allocations: 0.95 MB / 449.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.3137, allocations: 265 kB / 449.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004775/0.3185, allocations: 3.144 MB / 452.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.3186, allocations: 33.7 kB / 452.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.3197, allocations: 0.8692 MB / 453.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.3198, allocations: 126.9 kB / 453.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.32, allocations: 90.22 kB / 454 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3202, allocations: 330 kB / 454.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.3208, allocations: 209 kB / 454.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006804/0.3214, allocations: 401.5 kB / 454.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.3225, allocations: 0.5168 MB / 455.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3225, allocations: 0 / 455.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001981/0.3244, allocations: 0.7893 MB / 456.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.3245, allocations: 4 kB / 456.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.3245, allocations: 4.344 kB / 456.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003322/0.3248, allocations: 64.83 kB / 456.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/0.3253, allocations: 119.8 kB / 456.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.3274, allocations: 1.798 MB / 458.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.3285, allocations: 75.59 kB / 458.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.3286, allocations: 19.98 kB / 458.3 MB, free: 8.82 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.001228/0.3298, allocations: 0.6576 MB / 458.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003464/0.3301, allocations: 202.7 kB / 459.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000309/0.3304, allocations: 218.4 kB / 459.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3304, allocations: 4 kB / 459.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3304, allocations: 0 / 459.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3304, allocations: 0 / 459.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.3342, allocations: 2.159 MB / 461.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3342, allocations: 0 / 461.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.3346, allocations: 83.89 kB / 461.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.3348, allocations: 68.75 kB / 461.7 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.3348, allocations: 8 kB / 461.7 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.3366, allocations: 1.744 MB / 463.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3366, allocations: 0 / 463.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.3389, allocations: 0.9808 MB / 464.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009752/0.3399, allocations: 455.7 kB / 464.8 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.34, allocations: 8 kB / 464.9 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.3406, allocations: 55.95 kB / 464.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.3407, allocations: 39.94 kB / 464.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.3408, allocations: 12 kB / 465 MB, free: 1.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003462/0.3442, allocations: 2.243 MB / 467.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3442, allocations: 0 / 467.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3454, allocations: 263.5 kB / 467.5 MB, free: 15.35 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.001806/0.3472, allocations: 466.7 kB / 467.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3487, allocations: 0.5967 MB / 468.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.3487, allocations: 4.062 kB / 468.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006791/0.3494, allocations: 350.4 kB / 468.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.3508, allocations: 291.2 kB / 469.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/0.3572, allocations: 3.702 MB / 472.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00134/0.3586, allocations: 1.489 MB / 474.3 MB, free: 8.551 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000753/0.3593, allocations: 295.1 kB / 474.6 MB, free: 8.258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.3596, allocations: 95.44 kB / 474.7 MB, free: 8.164 MB / 382.1 MB Notification: Performance of SimCode: time 1.021e-06/0.3596, allocations: 0 / 474.7 MB, free: 8.164 MB / 382.1 MB Notification: Performance of Templates: time 0.03603/0.3956, allocations: 17.64 MB / 492.3 MB, free: 6.676 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.443694019690156]