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.001277/0.001277, allocations: 112.4 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 209.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.727/1.727, allocations: 227.4 MB / 247.6 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 55.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2484, allocations: 50.54 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.009987/0.2584, allocations: 6.071 MB / 416 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004888/0.2634, allocations: 2.299 MB / 418.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006268/0.264, allocations: 15.94 kB / 418.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.2658, allocations: 0.6302 MB / 418.9 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.2672, allocations: 437.7 kB / 419.4 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2685, allocations: 414.7 kB / 419.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001744/0.2702, allocations: 1.313 MB / 421.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007647/0.271, allocations: 471.1 kB / 421.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007275/0.2718, allocations: 498.3 kB / 422 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008836/0.2727, allocations: 0.5838 MB / 422.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002563/0.2729, allocations: 116 kB / 422.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004417/0.2734, allocations: 176 kB / 422.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008248/0.2742, allocations: 0.6622 MB / 423.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.2755, allocations: 0.8855 MB / 424.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002958/0.2785, allocations: 2.632 MB / 427.1 MB, free: 384 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2785, allocations: 0 / 427.1 MB, free: 384 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2785, allocations: 0 / 427.1 MB, free: 384 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.88e-05/0.2786, allocations: 3.984 kB / 427.1 MB, free: 380 kB / 334.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.005816/0.2844, allocations: 2.368 MB / 429.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2845, allocations: 8.031 kB / 429.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/0.285, allocations: 214.3 kB / 429.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003423/0.2884, allocations: 1.679 MB / 431.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.2886, allocations: 104.7 kB / 431.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.2887, allocations: 60 kB / 431.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.2904, allocations: 0.8297 MB / 432.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.2904, allocations: 0 / 432.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.2905, allocations: 28 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.2905, allocations: 19.94 kB / 432.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.2917, allocations: 0.5555 MB / 432.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006913/0.2986, allocations: 3.985 MB / 436.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.3001, allocations: 0.5266 MB / 437.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007886/0.3009, allocations: 369.2 kB / 437.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.3009, allocations: 4.281 kB / 437.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.301, allocations: 42.84 kB / 437.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.695e-06/0.301, allocations: 0 / 437.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002532/0.3035, allocations: 0.9455 MB / 438.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.3037, allocations: 273 kB / 439.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004896/0.3086, allocations: 3.156 MB / 442.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.503e-05/0.3087, allocations: 33.7 kB / 442.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007843/0.3095, allocations: 0.8647 MB / 443.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.3096, allocations: 118.3 kB / 443.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.3098, allocations: 86.17 kB / 443.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3099, allocations: 330 kB / 443.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004924/0.3104, allocations: 213 kB / 443.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.311, allocations: 393.9 kB / 444.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009721/0.312, allocations: 0.5243 MB / 444.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.312, allocations: 4 kB / 444.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001751/0.3138, allocations: 0.7768 MB / 445.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.3138, allocations: 8 kB / 445.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3138, allocations: 7.938 kB / 445.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003117/0.3142, allocations: 65.02 kB / 445.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.3147, allocations: 111.9 kB / 445.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.3165, allocations: 1.794 MB / 447.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007033/0.3172, allocations: 75.48 kB / 447.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.775e-05/0.3172, allocations: 16 kB / 447.6 MB, free: 11.07 MB / 366.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.0009225/0.3182, allocations: 0.6613 MB / 448.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003493/0.3185, allocations: 185.6 kB / 448.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.3189, allocations: 226.7 kB / 448.7 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.319, allocations: 4 kB / 448.7 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.319, allocations: 0 / 448.7 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.319, allocations: 7.922 kB / 448.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/0.3231, allocations: 2.159 MB / 450.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3231, allocations: 0 / 450.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/0.3236, allocations: 79.94 kB / 450.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.3238, allocations: 68.75 kB / 451 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3238, allocations: 8 kB / 451 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.3255, allocations: 1.74 MB / 452.7 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.3255, allocations: 3.984 kB / 452.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.3275, allocations: 0.9832 MB / 453.7 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.3286, allocations: 438.6 kB / 454.2 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.3289, allocations: 8 kB / 454.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006187/0.3295, allocations: 59.88 kB / 454.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.3296, allocations: 39.95 kB / 454.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.3297, allocations: 12 kB / 454.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003364/0.333, allocations: 2.259 MB / 456.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.333, allocations: 0 / 456.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009825/0.334, allocations: 247.5 kB / 456.8 MB, free: 1.609 MB / 366.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.001124/0.3352, allocations: 471.3 kB / 457.2 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.3366, allocations: 0.6084 MB / 457.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3366, allocations: 256 / 457.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.3373, allocations: 366.4 kB / 458.2 MB, free: 320 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.3387, allocations: 304.5 kB / 458.5 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.3449, allocations: 3.679 MB / 462.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.3462, allocations: 1.489 MB / 463.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/0.3466, allocations: 95.44 kB / 463.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.093e-06/0.3467, allocations: 0 / 463.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of Templates: time 0.04132/0.388, allocations: 29.96 MB / 493.7 MB, free: 12.75 MB / 414.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/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches