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.00112/0.00112, allocations: 114.9 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001043/0.001043, allocations: 204 kB / 19.41 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2636, 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.006766/0.2704, allocations: 6.055 MB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003378/0.2738, allocations: 2.299 MB / 418.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002747/0.2741, allocations: 19.94 kB / 418.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.2753, allocations: 0.6341 MB / 418.9 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000619/0.276, allocations: 445.6 kB / 419.4 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006953/0.2767, allocations: 402.4 kB / 419.8 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.2778, allocations: 1.321 MB / 421.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005575/0.2784, allocations: 471.1 kB / 421.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004458/0.2789, allocations: 0.4906 MB / 422 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005356/0.2794, allocations: 0.5877 MB / 422.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.2796, allocations: 120 kB / 422.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.2798, allocations: 176 kB / 422.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004202/0.2803, allocations: 0.6467 MB / 423.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.2809, allocations: 0.8933 MB / 424.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.2829, allocations: 2.632 MB / 427.1 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2829, allocations: 0 / 427.1 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.283, allocations: 3.938 kB / 427.1 MB, free: 384 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.283, allocations: 0 / 427.1 MB, free: 384 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.003525/0.2865, allocations: 2.376 MB / 429.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.2865, allocations: 8.031 kB / 429.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000282/0.2868, allocations: 210.3 kB / 429.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.2892, allocations: 1.683 MB / 431.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.875e-05/0.2893, allocations: 104.7 kB / 431.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.6e-05/0.2894, allocations: 60 kB / 431.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2906, allocations: 0.8259 MB / 432.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2907, allocations: 3.938 kB / 432.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.87e-05/0.2907, allocations: 28 kB / 432.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2908, allocations: 16 kB / 432.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009384/0.2917, allocations: 0.5516 MB / 432.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.2966, allocations: 3.989 MB / 436.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.2978, allocations: 0.5203 MB / 437.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006753/0.2985, allocations: 377.1 kB / 437.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.2985, allocations: 8.266 kB / 437.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.2985, allocations: 38.84 kB / 437.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.2985, allocations: 0 / 437.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002078/0.3006, allocations: 0.9456 MB / 438.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.3007, allocations: 261 kB / 439.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/0.3043, allocations: 3.156 MB / 442.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.3044, allocations: 37.7 kB / 442.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000729/0.3051, allocations: 0.8607 MB / 443.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/0.3052, allocations: 118.2 kB / 443.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3054, allocations: 94.16 kB / 443.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3055, allocations: 330 kB / 443.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.3059, allocations: 209 kB / 443.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005345/0.3065, allocations: 393.9 kB / 444.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009103/0.3074, allocations: 0.5244 MB / 444.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.3074, allocations: 4 kB / 444.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001435/0.3089, allocations: 0.773 MB / 445.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3089, allocations: 12.03 kB / 445.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3089, allocations: 4 kB / 445.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002719/0.3092, allocations: 68.81 kB / 445.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/0.3096, allocations: 115.8 kB / 445.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.3113, allocations: 1.79 MB / 447.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.3119, allocations: 67.5 kB / 447.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.3119, allocations: 23.98 kB / 447.6 MB, free: 11.08 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.0008469/0.3128, allocations: 0.6654 MB / 448.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.313, allocations: 185.6 kB / 448.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000267/0.3133, allocations: 218.6 kB / 448.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3133, allocations: 3.938 kB / 448.7 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3133, allocations: 0 / 448.7 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000829/0.3142, allocations: 442.6 kB / 449.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3143, allocations: 12 kB / 449.1 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005092/0.3148, allocations: 55.94 kB / 449.2 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-05/0.3149, allocations: 35.95 kB / 449.2 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001779/0.3167, allocations: 0.7319 MB / 449.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001403/0.3181, allocations: 0.9995 MB / 450.9 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003818/0.3185, allocations: 200.4 kB / 451.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002736/0.3213, allocations: 2.259 MB / 453.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of Backend: time 5.61e-07/0.3213, allocations: 0 / 453.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002803/0.3241, allocations: 1.113 MB / 454.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of SimCode: time 0.005064/0.3292, allocations: 4.002 MB / 458.5 MB, free: 256 kB / 366.1 MB Notification: Performance of Templates: time 0.03122/0.3604, allocations: 18.48 MB / 477 MB, free: 13.89 MB / 398.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