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.001668/0.001668, allocations: 111.3 kB / 17.68 MB, free: 5.355 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.001216/0.001216, allocations: 192 kB / 18.62 MB, free: 4.434 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.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009814/0.0009814, allocations: 53.45 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1037, allocations: 49.44 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007691/0.1115, allocations: 6.01 MB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003613/0.1151, allocations: 2.135 MB / 359.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004683/0.1156, allocations: 15.94 kB / 359.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.1171, allocations: 0.6262 MB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006939/0.1178, allocations: 405.8 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007807/0.1186, allocations: 414.1 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.1198, allocations: 1.31 MB / 362.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006565/0.1205, allocations: 477.8 kB / 362.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006006/0.1211, allocations: 494.3 kB / 363.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006432/0.1218, allocations: 0.5877 MB / 363.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.1219, allocations: 119.9 kB / 364 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.1222, allocations: 168 kB / 364.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004985/0.1227, allocations: 0.6584 MB / 364.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000689/0.1234, allocations: 0.8933 MB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002021/0.1254, allocations: 2.617 MB / 368.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1254, allocations: 0 / 368.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1255, allocations: 4 kB / 368.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.789e-05/0.1255, allocations: 0 / 368.4 MB, free: 2.742 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.003796/0.1293, allocations: 2.352 MB / 370.7 MB, free: 336 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1293, allocations: 12.03 kB / 370.7 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003082/0.1297, allocations: 218.3 kB / 371 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1901/0.3198, allocations: 1.665 MB / 372.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.32, allocations: 104.3 kB / 372.7 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.3202, allocations: 66.5 kB / 372.8 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.322, allocations: 0.8253 MB / 373.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3221, allocations: 3.828 kB / 373.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.276e-05/0.3221, allocations: 31.02 kB / 373.6 MB, free: 23.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.3222, allocations: 20.33 kB / 373.7 MB, free: 23.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.3233, allocations: 0.5454 MB / 374.2 MB, free: 23.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006594/0.3299, allocations: 3.976 MB / 378.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.3313, allocations: 0.5282 MB / 378.7 MB, free: 21.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007614/0.332, allocations: 356.5 kB / 379.1 MB, free: 21.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.3321, allocations: 10.38 kB / 379.1 MB, free: 21.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3321, allocations: 39.55 kB / 379.1 MB, free: 21.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.3321, allocations: 0 / 379.1 MB, free: 21.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002396/0.3345, allocations: 0.9425 MB / 380.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.3346, allocations: 270.8 kB / 380.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004242/0.3389, allocations: 3.148 MB / 383.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.594e-05/0.3389, allocations: 32.11 kB / 383.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006639/0.3396, allocations: 0.8597 MB / 384.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.3397, allocations: 123.5 kB / 384.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.3399, allocations: 93.05 kB / 384.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.3399, allocations: 326.6 kB / 384.9 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.3404, allocations: 210.2 kB / 385.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005185/0.3409, allocations: 394.2 kB / 385.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000857/0.3418, allocations: 0.5191 MB / 386 MB, free: 17.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3418, allocations: 1.188 kB / 386 MB, free: 17.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001495/0.3433, allocations: 0.7728 MB / 386.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3433, allocations: 7.344 kB / 386.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3433, allocations: 3.688 kB / 386.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.3436, allocations: 62.98 kB / 386.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.3441, allocations: 121.3 kB / 387 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3454, allocations: 1.794 MB / 388.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005659/0.346, allocations: 80.91 kB / 388.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.346, allocations: 22.22 kB / 388.9 MB, free: 15.46 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.0007008/0.3468, allocations: 0.6542 MB / 389.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.347, allocations: 178.7 kB / 389.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.3472, allocations: 220.1 kB / 389.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3472, allocations: 3.531 kB / 389.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3473, allocations: 0 / 389.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3473, allocations: 9.828 kB / 389.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003116/0.3504, allocations: 2.159 MB / 392.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3504, allocations: 1.375 kB / 392.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.3508, allocations: 76.39 kB / 392.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001668/0.351, allocations: 67.88 kB / 392.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.351, allocations: 8.125 kB / 392.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.3521, allocations: 1.744 MB / 394 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3522, allocations: 10.06 kB / 394 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.3538, allocations: 0.9718 MB / 394.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000774/0.3546, allocations: 439.7 kB / 395.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.3548, allocations: 17.62 kB / 395.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/0.3553, allocations: 48.36 kB / 395.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.3554, allocations: 44.72 kB / 395.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.3554, allocations: 13.19 kB / 395.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.3577, allocations: 2.247 MB / 397.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3577, allocations: 0 / 397.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007456/0.3584, allocations: 259.3 kB / 398 MB, free: 8.922 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.00102/0.3595, allocations: 469.3 kB / 398.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.3606, allocations: 0.609 MB / 399.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3606, allocations: 0.875 kB / 399.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.3611, allocations: 367.1 kB / 399.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.3622, allocations: 296 kB / 399.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004516/0.3667, allocations: 3.63 MB / 403.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008037/0.3675, allocations: 1.493 MB / 404.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005202/0.368, allocations: 291.2 kB / 405.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3683, allocations: 95.44 kB / 405.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3683, allocations: 0 / 405.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of Templates: time 0.03224/0.4005, allocations: 17.03 MB / 422.2 MB, free: 1.004 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 gbode -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