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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 108.3 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 57.28 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1011, allocations: 49.43 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007305/0.1084, allocations: 6.019 MB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003562/0.112, allocations: 2.139 MB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004737/0.1125, allocations: 15.94 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.1139, allocations: 0.6301 MB / 360.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007537/0.1147, allocations: 401.8 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009256/0.1156, allocations: 398.4 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.117, allocations: 1.317 MB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006224/0.1176, allocations: 473.7 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.1182, allocations: 498.3 kB / 363.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006156/0.1188, allocations: 0.5799 MB / 363.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.119, allocations: 120 kB / 364 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.1192, allocations: 176 kB / 364.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005013/0.1198, allocations: 0.6506 MB / 364.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007197/0.1205, allocations: 0.8971 MB / 365.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.1225, allocations: 2.617 MB / 368.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1225, allocations: 0 / 368.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1226, allocations: 0 / 368.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.1226, allocations: 0 / 368.4 MB, free: 2.707 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.003699/0.1263, allocations: 2.364 MB / 370.7 MB, free: 288 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1263, allocations: 8.031 kB / 370.7 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002594/0.1266, allocations: 210.3 kB / 370.9 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1685/0.2951, allocations: 1.667 MB / 372.6 MB, free: 24.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.2952, allocations: 106.3 kB / 372.7 MB, free: 24.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.2954, allocations: 67.28 kB / 372.8 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.2971, allocations: 0.8231 MB / 373.6 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.2971, allocations: 4.594 kB / 373.6 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.367e-05/0.2972, allocations: 27.25 kB / 373.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.2972, allocations: 19.66 kB / 373.7 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.2985, allocations: 0.5516 MB / 374.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006526/0.305, allocations: 3.976 MB / 378.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.3063, allocations: 0.5261 MB / 378.7 MB, free: 21.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007054/0.307, allocations: 359.2 kB / 379.1 MB, free: 21.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.3071, allocations: 8.375 kB / 379.1 MB, free: 21.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.3071, allocations: 39.34 kB / 379.1 MB, free: 21.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.355e-06/0.3071, allocations: 0 / 379.1 MB, free: 21.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002248/0.3093, allocations: 0.9393 MB / 380 MB, free: 20.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.3094, allocations: 267.7 kB / 380.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004874/0.3143, allocations: 3.147 MB / 383.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.3145, allocations: 32.95 kB / 383.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008207/0.3153, allocations: 0.86 MB / 384.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3154, allocations: 119.3 kB / 384.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.3156, allocations: 93.59 kB / 384.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.767e-05/0.3157, allocations: 327.9 kB / 384.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.3161, allocations: 213 kB / 385.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/0.3167, allocations: 393.6 kB / 385.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008198/0.3175, allocations: 0.5161 MB / 386 MB, free: 17.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.3175, allocations: 1.219 kB / 386 MB, free: 17.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002007/0.3195, allocations: 0.7763 MB / 386.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3196, allocations: 10.86 kB / 386.8 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3196, allocations: 7.219 kB / 386.8 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.3199, allocations: 63.53 kB / 386.8 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.3203, allocations: 118.3 kB / 387 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.3216, allocations: 1.798 MB / 388.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007927/0.3224, allocations: 76.62 kB / 388.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.3225, allocations: 17.38 kB / 388.8 MB, free: 15.74 MB / 302.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.0008612/0.3233, allocations: 0.6711 MB / 389.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.3236, allocations: 179.3 kB / 389.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.3239, allocations: 216.1 kB / 389.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3239, allocations: 3.125 kB / 389.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3239, allocations: 0 / 389.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3239, allocations: 0 / 389.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.3272, allocations: 2.161 MB / 392.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3272, allocations: 1.438 kB / 392.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003816/0.3276, allocations: 89.66 kB / 392.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001752/0.3278, allocations: 56.31 kB / 392.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.3278, allocations: 8.125 kB / 392.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.3289, allocations: 1.742 MB / 394 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3289, allocations: 5.469 kB / 394 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3307, allocations: 0.9718 MB / 394.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007809/0.3314, allocations: 444.8 kB / 395.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.3316, allocations: 13.83 kB / 395.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005005/0.3321, allocations: 55.8 kB / 395.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.3322, allocations: 43.58 kB / 395.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.3323, allocations: 14.23 kB / 395.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.335, allocations: 2.247 MB / 397.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.335, allocations: 0 / 397.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007789/0.3358, allocations: 251.3 kB / 398 MB, free: 9.273 MB / 302.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.001019/0.3369, allocations: 476.1 kB / 398.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.338, allocations: 0.6128 MB / 399.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.338, allocations: 4 kB / 399.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005232/0.3385, allocations: 363.1 kB / 399.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.34, allocations: 292.2 kB / 399.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004858/0.3449, allocations: 3.626 MB / 403.3 MB, free: 4.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007897/0.3457, allocations: 1.493 MB / 404.8 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006547/0.3464, allocations: 303.1 kB / 405.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.3466, allocations: 91.44 kB / 405.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3466, allocations: 0 / 405.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of Templates: time 0.02947/0.3761, allocations: 17.02 MB / 422.2 MB, free: 1.352 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches