Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001558/0.001557, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001895/0.001895, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 62.98 kB / 306.3 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1146, allocations: 50.53 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008435/0.123, allocations: 6.044 MB / 362.8 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00418/0.1273, allocations: 2.268 MB / 365.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006632/0.128, allocations: 15.94 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.1296, allocations: 0.5955 MB / 365.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.1308, allocations: 398.2 kB / 366.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1318, allocations: 370.2 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.1335, allocations: 1.227 MB / 367.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006853/0.1342, allocations: 417.6 kB / 368.1 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000675/0.1349, allocations: 430.3 kB / 368.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008825/0.1358, allocations: 0.5447 MB / 369.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002098/0.136, allocations: 60 kB / 369.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004026/0.1364, allocations: 112 kB / 369.2 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005648/0.137, allocations: 0.6075 MB / 369.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.1381, allocations: 0.8152 MB / 370.7 MB, free: 384 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2076/0.3457, allocations: 2.529 MB / 373.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3457, allocations: 0.5 kB / 373.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3458, allocations: 2.906 kB / 373.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.113e-05/0.3458, allocations: 0.9688 kB / 373.2 MB, free: 13.14 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.005253/0.3511, allocations: 2.37 MB / 375.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.3512, allocations: 10.12 kB / 375.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004508/0.3516, allocations: 214.3 kB / 375.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.3545, allocations: 1.654 MB / 377.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002502/0.3548, allocations: 130.3 kB / 377.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.3549, allocations: 74.19 kB / 377.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.3567, allocations: 0.8207 MB / 378.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3568, allocations: 0.6562 kB / 378.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.3569, allocations: 28.97 kB / 378.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.357, allocations: 16.06 kB / 378.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.358, allocations: 0.5527 MB / 379 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007104/0.3651, allocations: 4.015 MB / 383.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.3665, allocations: 0.5348 MB / 383.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008681/0.3674, allocations: 358.9 kB / 383.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.3675, allocations: 4.562 kB / 384 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.3675, allocations: 39.09 kB / 384 MB, free: 8.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.286e-06/0.3675, allocations: 0 / 384 MB, free: 8.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002882/0.3704, allocations: 0.9458 MB / 384.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.3705, allocations: 265.7 kB / 385.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005162/0.3757, allocations: 3.159 MB / 388.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.231e-05/0.3758, allocations: 35.98 kB / 388.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00071/0.3765, allocations: 0.8617 MB / 389.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.3767, allocations: 118.6 kB / 389.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.3769, allocations: 88.55 kB / 389.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.299e-05/0.377, allocations: 325.8 kB / 389.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005799/0.3776, allocations: 210.9 kB / 390 MB, free: 5.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000638/0.3782, allocations: 402.5 kB / 390.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.3793, allocations: 0.5217 MB / 390.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.3793, allocations: 8 kB / 390.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002071/0.3814, allocations: 0.7801 MB / 391.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.3814, allocations: 13.31 kB / 391.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3814, allocations: 3.5 kB / 391.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003175/0.3818, allocations: 65.16 kB / 391.8 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.3822, allocations: 114.4 kB / 391.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.3836, allocations: 1.629 MB / 393.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009175/0.3845, allocations: 73.64 kB / 393.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.3846, allocations: 19.12 kB / 393.6 MB, free: 3.047 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.001304/0.3859, allocations: 0.6631 MB / 394.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/0.3863, allocations: 181.9 kB / 394.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003413/0.3867, allocations: 220.7 kB / 394.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3867, allocations: 3.75 kB / 394.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.3867, allocations: 3.938 kB / 394.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3867, allocations: 3.984 kB / 394.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.3902, allocations: 2.15 MB / 396.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3902, allocations: 0 / 396.8 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.3906, allocations: 85.02 kB / 396.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.3908, allocations: 58.78 kB / 397 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.3908, allocations: 8.531 kB / 397 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3921, allocations: 1.582 MB / 398.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.3921, allocations: 0 / 398.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.3939, allocations: 0.9853 MB / 399.5 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007241/0.3947, allocations: 441.1 kB / 400 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.3949, allocations: 11.12 kB / 400 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005739/0.3954, allocations: 56.5 kB / 400 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.3956, allocations: 43.41 kB / 400.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.3956, allocations: 9.562 kB / 400.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003344/0.399, allocations: 2.257 MB / 402.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.399, allocations: 0 / 402.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001081/0.4001, allocations: 255.4 kB / 402.6 MB, free: 12.87 MB / 318.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.001135/0.4012, allocations: 471.4 kB / 403 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.4026, allocations: 0.611 MB / 403.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4027, allocations: 0 / 403.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006521/0.4033, allocations: 367.5 kB / 404 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.4047, allocations: 268.3 kB / 404.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006827/0.4115, allocations: 4.108 MB / 408.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.4128, allocations: 1.501 MB / 409.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001004/0.4138, allocations: 303.1 kB / 410.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.4141, allocations: 87.44 kB / 410.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4141, allocations: 0 / 410.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of Templates: time 0.03656/0.4507, allocations: 18.29 MB / 428.6 MB, free: 3.137 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches