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.0008311/0.0008314, allocations: 90.34 kB / 16.65 MB, free: 6.535 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.0009511/0.0009512, allocations: 177 kB / 17.56 MB, free: 6.18 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.426/1.426, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002955, allocations: 11.94 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 50.41 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006082/0.1115, allocations: 5.571 MB / 357.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003462/0.115, allocations: 2.069 MB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005245/0.1155, allocations: 11.94 kB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.1169, allocations: 0.5956 MB / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008305/0.1177, allocations: 362.3 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008913/0.1186, allocations: 378.5 kB / 360.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1199, allocations: 1.216 MB / 362 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005711/0.1205, allocations: 421.5 kB / 362.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.1209, allocations: 394.4 kB / 362.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005309/0.1215, allocations: 0.5057 MB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.384e-05/0.1216, allocations: 48 kB / 363.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.1218, allocations: 99.98 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.1222, allocations: 0.5803 MB / 364.1 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006703/0.1229, allocations: 0.8129 MB / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.125, allocations: 2.468 MB / 367.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.125, allocations: 3.938 kB / 367.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.125, allocations: 0 / 367.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.1251, allocations: 0 / 367.3 MB, free: 3.898 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.004377/0.1294, allocations: 2.038 MB / 369.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.1295, allocations: 12.03 kB / 369.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.1299, allocations: 218.3 kB / 369.6 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2154/0.3453, allocations: 1.643 MB / 371.2 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/0.3457, allocations: 135.9 kB / 371.4 MB, free: 22.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.3458, allocations: 60.19 kB / 371.4 MB, free: 22.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3476, allocations: 0.8382 MB / 372.3 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3476, allocations: 3.562 kB / 372.3 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.3477, allocations: 30.94 kB / 372.3 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.3477, allocations: 19.44 kB / 372.3 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.3491, allocations: 0.5542 MB / 372.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007965/0.357, allocations: 4.047 MB / 376.9 MB, free: 20.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.3586, allocations: 0.5727 MB / 377.5 MB, free: 20.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008879/0.3595, allocations: 375.8 kB / 377.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.3596, allocations: 3.734 kB / 377.9 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.3596, allocations: 39.5 kB / 377.9 MB, free: 20.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.3596, allocations: 0 / 377.9 MB, free: 20.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002849/0.3625, allocations: 1.003 MB / 378.9 MB, free: 19.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.3626, allocations: 268.3 kB / 379.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005201/0.3678, allocations: 3.139 MB / 382.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.368, allocations: 33.83 kB / 382.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000785/0.3687, allocations: 0.8605 MB / 383.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3689, allocations: 119.4 kB / 383.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.717e-05/0.3689, allocations: 45.56 kB / 383.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.369, allocations: 335.3 kB / 383.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.3695, allocations: 216.8 kB / 383.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005828/0.3701, allocations: 406.7 kB / 384.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009973/0.3711, allocations: 0.5439 MB / 384.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.3712, allocations: 1.25 kB / 384.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001861/0.373, allocations: 0.7938 MB / 385.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3731, allocations: 6.906 kB / 385.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3731, allocations: 4.094 kB / 385.7 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.3734, allocations: 75.86 kB / 385.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.3739, allocations: 120.5 kB / 385.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/0.3755, allocations: 1.639 MB / 387.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009009/0.3764, allocations: 91.8 kB / 387.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.3765, allocations: 22.98 kB / 387.6 MB, free: 14.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.001167/0.3777, allocations: 0.6582 MB / 388.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.378, allocations: 182.2 kB / 388.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/0.3783, allocations: 216.8 kB / 388.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3784, allocations: 8.766 kB / 388.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3784, allocations: 3.906 kB / 388.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3784, allocations: 0 / 388.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.3819, allocations: 2.197 MB / 390.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.382, allocations: 1.312 kB / 390.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.3823, allocations: 88.66 kB / 390.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.3826, allocations: 60.64 kB / 391 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.3826, allocations: 12.02 kB / 391 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.3838, allocations: 1.594 MB / 392.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3838, allocations: 2.875 kB / 392.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.3858, allocations: 1.013 MB / 393.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006972/0.3865, allocations: 447.4 kB / 394.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.3866, allocations: 8.125 kB / 394.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.3872, allocations: 69.31 kB / 394.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3874, allocations: 40.39 kB / 394.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.3874, allocations: 12.25 kB / 394.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003105/0.3905, allocations: 2.246 MB / 396.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3905, allocations: 0 / 396.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3916, allocations: 262.6 kB / 396.7 MB, free: 9.211 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.001309/0.3929, allocations: 477.9 kB / 397.2 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.3942, allocations: 0.6378 MB / 397.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3942, allocations: 4 kB / 397.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005739/0.3948, allocations: 378.8 kB / 398.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.3962, allocations: 274 kB / 398.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005614/0.4018, allocations: 4.233 MB / 402.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008861/0.4027, allocations: 1.497 MB / 404.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007556/0.4035, allocations: 299.1 kB / 404.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.4037, allocations: 91.44 kB / 404.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4037, allocations: 0 / 404.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of Templates: time 0.03386/0.4376, allocations: 17.93 MB / 422.5 MB, free: 15.74 MB / 334.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 -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/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) Reference file matches