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.001906/0.001906, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001867, allocations: 63.19 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1187, allocations: 50.54 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007668/0.1264, allocations: 5.534 MB / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.1296, allocations: 1.878 MB / 364.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003227/0.13, allocations: 15.94 kB / 365 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.1311, allocations: 0.5329 MB / 365.5 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007375/0.1318, allocations: 378 kB / 365.9 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007649/0.1326, allocations: 379 kB / 366.2 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009458/0.1335, allocations: 0.8926 MB / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.1341, allocations: 336.8 kB / 367.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004643/0.1346, allocations: 366.8 kB / 367.8 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005268/0.1351, allocations: 438.4 kB / 368.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.1352, allocations: 84 kB / 368.3 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.1355, allocations: 120 kB / 368.4 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005174/0.136, allocations: 0.5882 MB / 369 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007212/0.1368, allocations: 0.7415 MB / 369.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.175/0.3117, allocations: 2.091 MB / 371.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3118, allocations: 0 / 371.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3118, allocations: 0.8125 kB / 371.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.3119, allocations: 0 / 371.9 MB, free: 13.27 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.003595/0.3155, allocations: 2.08 MB / 373.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3155, allocations: 10.44 kB / 373.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/0.3158, allocations: 185.9 kB / 374.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.3178, allocations: 1.495 MB / 375.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.318, allocations: 88.05 kB / 375.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.227e-05/0.3181, allocations: 57.22 kB / 375.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009482/0.3191, allocations: 0.5801 MB / 376.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3191, allocations: 3.562 kB / 376.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.3192, allocations: 25.2 kB / 376.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/0.3192, allocations: 11 kB / 376.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.3199, allocations: 344.5 kB / 376.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004234/0.3241, allocations: 3.248 MB / 380 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3253, allocations: 388.1 kB / 380.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004417/0.3257, allocations: 185.1 kB / 380.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3257, allocations: 6.312 kB / 380.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3258, allocations: 41.31 kB / 380.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.3258, allocations: 1.125 kB / 380.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001798/0.3276, allocations: 0.6979 MB / 381.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.3277, allocations: 209.8 kB / 381.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003678/0.3313, allocations: 2.901 MB / 384.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.3314, allocations: 36.55 kB / 384.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005543/0.332, allocations: 0.7826 MB / 385.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.332, allocations: 77.27 kB / 385.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.3321, allocations: 64.3 kB / 385.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.3322, allocations: 317.1 kB / 385.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.3325, allocations: 126.4 kB / 385.8 MB, free: 7.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.3329, allocations: 290.7 kB / 386.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/0.3336, allocations: 361.2 kB / 386.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3336, allocations: 4.344 kB / 386.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001121/0.3347, allocations: 0.5627 MB / 387 MB, free: 6.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.3347, allocations: 6.969 kB / 387 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.3347, allocations: 2.969 kB / 387 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002608/0.335, allocations: 57.98 kB / 387 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.3353, allocations: 79.28 kB / 387.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.3367, allocations: 1.717 MB / 388.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.3373, allocations: 63.72 kB / 388.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.3373, allocations: 19.89 kB / 388.9 MB, free: 5.035 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.0006573/0.338, allocations: 0.5789 MB / 389.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/0.3382, allocations: 164 kB / 389.7 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.3394, allocations: 0.5226 MB / 390.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3394, allocations: 3.281 kB / 390.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.3395, allocations: 0 / 390.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3395, allocations: 0.6875 kB / 390.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.3422, allocations: 1.699 MB / 391.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3422, allocations: 0 / 391.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.3425, allocations: 49.38 kB / 391.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.3426, allocations: 56 kB / 392 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.3427, allocations: 4.625 kB / 392 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.3438, allocations: 1.665 MB / 393.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3438, allocations: 1.375 kB / 393.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.3454, allocations: 0.7114 MB / 394.4 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006686/0.3461, allocations: 386.2 kB / 394.7 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.3463, allocations: 7.594 kB / 394.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3468, allocations: 46.42 kB / 394.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.3469, allocations: 37.77 kB / 394.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.3469, allocations: 4.656 kB / 394.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003167/0.3501, allocations: 2.076 MB / 396.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3501, allocations: 2.25 kB / 396.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009134/0.351, allocations: 193.5 kB / 397.1 MB, free: 0.543 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.001346/0.3524, allocations: 361.1 kB / 397.5 MB, free: 376 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.3535, allocations: 444.2 kB / 397.9 MB, free: 132 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.3535, allocations: 0.75 kB / 397.9 MB, free: 132 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.354, allocations: 270.7 kB / 398.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.3552, allocations: 226.8 kB / 398.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005912/0.3612, allocations: 3.058 MB / 401.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.3626, allocations: 1.359 MB / 402.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007555/0.3634, allocations: 233.7 kB / 403 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.3637, allocations: 78.06 kB / 403.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3637, allocations: 0 / 403.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of Templates: time 0.03158/0.3953, allocations: 15.58 MB / 418.7 MB, free: 12.42 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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