Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001677/0.001677, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.516/1.516, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 64.77 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1058, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008295/0.1141, allocations: 6.059 MB / 364.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003965/0.1181, allocations: 2.302 MB / 366.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004893/0.1186, allocations: 15.94 kB / 366.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.1201, allocations: 0.6341 MB / 367.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.1212, allocations: 441.6 kB / 367.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009191/0.1221, allocations: 406.7 kB / 368.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.1238, allocations: 1.306 MB / 369.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008419/0.1246, allocations: 477.7 kB / 370 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007906/0.1255, allocations: 494.3 kB / 370.5 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008186/0.1263, allocations: 0.5877 MB / 371.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.1265, allocations: 124 kB / 371.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.1268, allocations: 168 kB / 371.4 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000662/0.1275, allocations: 0.6544 MB / 372.1 MB, free: 272 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1628/0.2903, allocations: 0.893 MB / 372.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002825/0.2932, allocations: 2.598 MB / 375.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2932, allocations: 0 / 375.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2932, allocations: 0 / 375.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.751e-05/0.2932, allocations: 0.8125 kB / 375.5 MB, free: 11.97 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.004281/0.2975, allocations: 2.366 MB / 377.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2976, allocations: 9.5 kB / 377.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003545/0.2979, allocations: 212.7 kB / 378.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002444/0.3004, allocations: 1.659 MB / 379.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.3006, allocations: 131.3 kB / 379.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.425e-05/0.3008, allocations: 69.06 kB / 380 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3021, allocations: 0.8284 MB / 380.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3022, allocations: 1.125 kB / 380.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.3022, allocations: 25.62 kB / 380.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.3023, allocations: 16.23 kB / 380.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.3033, allocations: 0.5481 MB / 381.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/0.309, allocations: 4.012 MB / 385.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3103, allocations: 0.5413 MB / 386 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000699/0.311, allocations: 355.4 kB / 386.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.3111, allocations: 4.312 kB / 386.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.3111, allocations: 47.59 kB / 386.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.3111, allocations: 1.188 kB / 386.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002304/0.3134, allocations: 0.9417 MB / 387.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.3135, allocations: 268.3 kB / 387.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004194/0.3177, allocations: 3.159 MB / 390.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.764e-05/0.3178, allocations: 37.17 kB / 390.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006266/0.3184, allocations: 0.8516 MB / 391.6 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.445e-05/0.3185, allocations: 119.4 kB / 391.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.3187, allocations: 95.38 kB / 391.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.3187, allocations: 321.7 kB / 392.1 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.3192, allocations: 211.1 kB / 392.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.3197, allocations: 408.4 kB / 392.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008479/0.3206, allocations: 0.5189 MB / 393.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3206, allocations: 4 kB / 393.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00152/0.3221, allocations: 0.7759 MB / 394 MB, free: 3.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3221, allocations: 14.75 kB / 394 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3222, allocations: 2.75 kB / 394 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.3224, allocations: 70.12 kB / 394.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.3229, allocations: 114.5 kB / 394.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3242, allocations: 1.791 MB / 396 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.325, allocations: 75.03 kB / 396.1 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.325, allocations: 21.5 kB / 396.1 MB, free: 1.406 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.0008926/0.3259, allocations: 0.6547 MB / 396.8 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.3262, allocations: 186.8 kB / 397 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.3265, allocations: 224 kB / 397.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3265, allocations: 3.156 kB / 397.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3265, allocations: 6.125 kB / 397.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3265, allocations: 0 / 397.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.3298, allocations: 2.16 MB / 399.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3298, allocations: 2.531 kB / 399.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.3302, allocations: 87 kB / 399.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001899/0.3305, allocations: 57.02 kB / 399.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.3305, allocations: 11.58 kB / 399.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.3322, allocations: 1.738 MB / 401.2 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.3322, allocations: 11.83 kB / 401.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.3342, allocations: 0.9739 MB / 402.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000752/0.335, allocations: 444.9 kB / 402.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.3352, allocations: 13.84 kB / 402.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/0.3358, allocations: 56.38 kB / 402.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3359, allocations: 35.45 kB / 402.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.3359, allocations: 13.66 kB / 402.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003495/0.3394, allocations: 2.258 MB / 405 MB, free: 11.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3394, allocations: 4 kB / 405 MB, free: 11.1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001104/0.3405, allocations: 251.5 kB / 405.3 MB, free: 10.86 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.001721/0.3423, allocations: 474.9 kB / 405.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.3438, allocations: 0.6405 MB / 406.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3438, allocations: 0 / 406.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.3445, allocations: 363.5 kB / 406.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.3459, allocations: 295.3 kB / 407 MB, free: 9.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006906/0.3528, allocations: 3.735 MB / 410.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/0.3543, allocations: 1.493 MB / 412.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.3549, allocations: 95.44 kB / 412.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3549, allocations: 0 / 412.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of Templates: time 0.04341/0.3984, allocations: 29.5 MB / 441.8 MB, free: 6.488 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches