Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001575/0.001575, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.11 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09447, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006507/0.101, allocations: 5.527 MB / 364.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.104, allocations: 1.89 MB / 366.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1044, allocations: 15.88 kB / 366.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009927/0.1055, allocations: 0.5213 MB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008014/0.1063, allocations: 390 kB / 367.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008098/0.1071, allocations: 366 kB / 367.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1082, allocations: 0.9042 MB / 368.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005142/0.1087, allocations: 340.8 kB / 368.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.1092, allocations: 362.8 kB / 369.2 MB, free: 3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004709/0.1097, allocations: 442.4 kB / 369.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1098, allocations: 76 kB / 369.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.11, allocations: 124 kB / 369.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004336/0.1104, allocations: 0.5921 MB / 370.4 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005686/0.111, allocations: 0.7415 MB / 371.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1716/0.2826, allocations: 2.116 MB / 373.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2827, allocations: 0 / 373.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2827, allocations: 1.031 kB / 373.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.097e-05/0.2827, allocations: 0 / 373.3 MB, free: 13.88 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003525/0.2863, allocations: 2.08 MB / 375.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.2863, allocations: 9.609 kB / 375.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003687/0.2867, allocations: 187.2 kB / 375.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/0.2894, allocations: 1.501 MB / 377 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-05/0.2895, allocations: 65.86 kB / 377.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/0.2895, allocations: 55.2 kB / 377.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2906, allocations: 0.5844 MB / 377.7 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2906, allocations: 0.5938 kB / 377.7 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.2907, allocations: 21.12 kB / 377.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2907, allocations: 12.34 kB / 377.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006688/0.2914, allocations: 348.1 kB / 378.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005027/0.2964, allocations: 3.237 MB / 381.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.2975, allocations: 381.6 kB / 381.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.298, allocations: 180.6 kB / 381.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.298, allocations: 7.109 kB / 381.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.2981, allocations: 40.69 kB / 381.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.515e-06/0.2981, allocations: 4 kB / 381.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001994/0.3001, allocations: 0.6946 MB / 382.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.3002, allocations: 210.2 kB / 382.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004206/0.3044, allocations: 2.901 MB / 385.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.582e-05/0.3045, allocations: 31.11 kB / 385.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006281/0.3051, allocations: 0.7839 MB / 386.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.757e-05/0.3052, allocations: 76.66 kB / 386.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.3053, allocations: 65.92 kB / 386.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.3053, allocations: 321.9 kB / 387 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.3057, allocations: 117.9 kB / 387.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.3061, allocations: 294.4 kB / 387.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008333/0.3069, allocations: 356.5 kB / 387.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3069, allocations: 1.125 kB / 387.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001228/0.3082, allocations: 0.5647 MB / 388.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.3082, allocations: 6.781 kB / 388.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3082, allocations: 3.906 kB / 388.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002729/0.3085, allocations: 61.42 kB / 388.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002918/0.3088, allocations: 81.06 kB / 388.5 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.3102, allocations: 1.724 MB / 390.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007304/0.3109, allocations: 60.05 kB / 390.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.311, allocations: 25.16 kB / 390.3 MB, free: 5.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0009661/0.3119, allocations: 0.5776 MB / 390.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002889/0.3122, allocations: 165.4 kB / 391 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.3134, allocations: 0.5056 MB / 391.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3135, allocations: 6.219 kB / 391.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3135, allocations: 0 / 391.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3135, allocations: 1.312 kB / 391.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.3164, allocations: 1.694 MB / 393.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3164, allocations: 5 kB / 393.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.3166, allocations: 49.02 kB / 393.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001581/0.3168, allocations: 45.83 kB / 393.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3168, allocations: 6.25 kB / 393.3 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.3179, allocations: 1.675 MB / 395 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3179, allocations: 0 / 395 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.3194, allocations: 0.7155 MB / 395.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008935/0.3203, allocations: 383.3 kB / 396.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.3205, allocations: 7.25 kB / 396.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004643/0.3209, allocations: 47.27 kB / 396.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.321, allocations: 30.55 kB / 396.2 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3211, allocations: 9.406 kB / 396.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003167/0.3242, allocations: 2.077 MB / 398.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3243, allocations: 0 / 398.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009496/0.3252, allocations: 193.9 kB / 398.5 MB, free: 0.7891 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008802/0.3261, allocations: 358.2 kB / 398.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.3272, allocations: 443.6 kB / 399.2 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3272, allocations: 0 / 399.2 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004402/0.3276, allocations: 267.2 kB / 399.5 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.3288, allocations: 227.6 kB / 399.7 MB, free: 68 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.3337, allocations: 3.001 MB / 402.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.3348, allocations: 1.359 MB / 404.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005901/0.3354, allocations: 241.7 kB / 404.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.3357, allocations: 79.44 kB / 404.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3357, allocations: 0 / 404.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Templates: time 0.02792/0.3636, allocations: 15.55 MB / 419.9 MB, free: 12.57 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches