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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006958/0.0006958, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000952/0.001648, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006687/0.0006687, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009702/0.001639, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.031/1.031, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1007/1.132, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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=12000,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=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.18e-05, allocations: 6.25 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005413/0.005435, allocations: 5.412 MB / 250.4 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.008309, allocations: 1.896 MB / 252.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003919/0.008701, allocations: 15.94 kB / 252.3 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008032/0.009504, allocations: 0.5445 MB / 252.9 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005211/0.01003, allocations: 401.7 kB / 253.3 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005799/0.0106, allocations: 379.2 kB / 253.6 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008444/0.01145, allocations: 0.9197 MB / 254.5 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.01175, allocations: 219.3 kB / 254.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005555/0.0123, allocations: 0.621 MB / 255.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.01263, allocations: 359.1 kB / 255.7 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.0127, allocations: 76 kB / 255.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.01284, allocations: 127.8 kB / 255.9 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002807/0.01312, allocations: 0.5572 MB / 256.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.01338, allocations: 330.9 kB / 256.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008235/0.01421, allocations: 1.175 MB / 258 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.268e-05/0.01422, allocations: 0 / 258 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01422, allocations: 0 / 258 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.039e-05/0.01425, allocations: 0 / 258 MB, free: 0.6133 MB / 250.7 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.001908/0.01616, allocations: 2.165 MB / 260.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.01619, allocations: 8.031 kB / 260.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.01637, allocations: 144.8 kB / 260.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008131/0.01718, allocations: 0.8181 MB / 261.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/0.01725, allocations: 92.97 kB / 261.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.0173, allocations: 52.38 kB / 261.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.01777, allocations: 0.6876 MB / 262 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.01778, allocations: 0 / 262 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.01781, allocations: 24 kB / 262 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.01781, allocations: 12 kB / 262 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.01795, allocations: 122.8 kB / 262.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.01966, allocations: 1.888 MB / 264 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.01995, allocations: 186.5 kB / 264.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.02006, allocations: 88.8 kB / 264.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.02008, allocations: 4.375 kB / 264.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.0201, allocations: 38.5 kB / 264.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.02011, allocations: 0 / 264.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005525/0.02066, allocations: 289.5 kB / 264.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.02068, allocations: 55.41 kB / 264.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.02189, allocations: 1.675 MB / 266.3 MB, free: 7.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.02191, allocations: 33.7 kB / 266.3 MB, free: 7.887 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.02213, allocations: 456.2 kB / 266.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.02217, allocations: 75.31 kB / 266.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.75e-05/0.02225, allocations: 73.94 kB / 266.9 MB, free: 7.285 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.012e-05/0.02233, allocations: 321.9 kB / 267.3 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.055e-05/0.02237, allocations: 28.64 kB / 267.3 MB, free: 6.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.02255, allocations: 345.9 kB / 267.6 MB, free: 6.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.02271, allocations: 222.5 kB / 267.8 MB, free: 6.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.02271, allocations: 0 / 267.8 MB, free: 6.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002755/0.02299, allocations: 282.4 kB / 268.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.023, allocations: 12.09 kB / 268.1 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.02301, allocations: 4 kB / 268.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001061/0.02311, allocations: 32.84 kB / 268.2 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.02327, allocations: 71.91 kB / 268.2 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007429/0.02402, allocations: 1.419 MB / 269.7 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.0242, allocations: 47.77 kB / 269.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.02421, allocations: 8 kB / 269.7 MB, free: 4.254 MB / 266.7 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001531/0.02436, allocations: 144.5 kB / 269.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/0.02445, allocations: 99.81 kB / 269.9 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.02475, allocations: 278.3 kB / 270.2 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.02475, allocations: 4 kB / 270.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.02e-07/0.02475, allocations: 0 / 270.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.02476, allocations: 0 / 270.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008321/0.02559, allocations: 0.8511 MB / 271.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.02559, allocations: 0 / 271.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.02569, allocations: 39.97 kB / 271.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.02591, allocations: 214.8 kB / 271.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-05/0.02598, allocations: 28.84 kB / 271.3 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.02599, allocations: 4 kB / 271.4 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006198/0.02661, allocations: 1.375 MB / 272.7 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.02661, allocations: 0 / 272.7 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.02693, allocations: 373.4 kB / 273.1 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.975e-05/0.027, allocations: 8.062 kB / 273.1 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.02716, allocations: 28.02 kB / 273.1 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.02721, allocations: 39.94 kB / 273.2 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.02722, allocations: 7.984 kB / 273.2 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007471/0.02797, allocations: 0.9105 MB / 274.1 MB, free: 15.67 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02797, allocations: 4 kB / 274.1 MB, free: 15.67 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.02835, allocations: 207.6 kB / 274.3 MB, free: 15.47 MB / 282.7 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.001104/0.02945, allocations: 472.8 kB / 274.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.02975, allocations: 274.3 kB / 275 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-05/0.02977, allocations: 20 kB / 275 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000151/0.02992, allocations: 195.3 kB / 275.2 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.03041, allocations: 259.9 kB / 275.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00479/0.0352, allocations: 2.395 MB / 277.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.03545, allocations: 354 kB / 278.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.03567, allocations: 142.2 kB / 278.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003242/0.03599, allocations: 249.3 kB / 278.6 MB, free: 11.22 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.03599, allocations: 4 kB / 278.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of Templates: time 0.1112/0.1472, allocations: 16.92 MB / 295.5 MB, free: 26.96 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.961641278117895]