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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 201 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008179/0.0008176, allocations: 98.8 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002409, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2278, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.3352, allocations: 90.98 MB / 0.4886 GB, free: 500 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.3355, allocations: 86.14 kB / 0.4887 GB, free: 416 kB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.261/0.5965, allocations: 35.63 MB / 0.5235 GB, free: 89.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5966, allocations: 0 / 0.5235 GB, free: 89.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001367/0.5967, allocations: 31.88 kB / 0.5235 GB, free: 89.02 MB / 378.7 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.003202/0.5999, allocations: 2.139 MB / 0.5256 GB, free: 87.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.6, allocations: 8.031 kB / 0.5256 GB, free: 87.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.6003, allocations: 214.3 kB / 0.5258 GB, free: 86.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.6027, allocations: 1.759 MB / 0.5276 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.88e-05/0.6028, allocations: 79.58 kB / 0.5276 GB, free: 85.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.6029, allocations: 60.75 kB / 0.5277 GB, free: 84.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.6042, allocations: 0.8258 MB / 0.5285 GB, free: 84.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.6043, allocations: 0 / 0.5285 GB, free: 84.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.098e-05/0.6043, allocations: 31.94 kB / 0.5285 GB, free: 84.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.6044, allocations: 16 kB / 0.5285 GB, free: 84.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000911/0.6053, allocations: 0.536 MB / 0.5291 GB, free: 83.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/0.6106, allocations: 4.055 MB / 0.533 GB, free: 79.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.6118, allocations: 0.554 MB / 0.5336 GB, free: 78.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006051/0.6124, allocations: 376.3 kB / 0.5339 GB, free: 78.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.6125, allocations: 4.281 kB / 0.5339 GB, free: 78.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.6125, allocations: 54.7 kB / 0.534 GB, free: 78.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.106e-06/0.6125, allocations: 0 / 0.534 GB, free: 78.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00191/0.6144, allocations: 0.9229 MB / 0.5349 GB, free: 77.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.6145, allocations: 269 kB / 0.5351 GB, free: 77.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/0.618, allocations: 3.148 MB / 0.5382 GB, free: 73.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.6181, allocations: 37.7 kB / 0.5382 GB, free: 73.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006072/0.6187, allocations: 0.8608 MB / 0.5391 GB, free: 72.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.32e-05/0.6188, allocations: 114.4 kB / 0.5392 GB, free: 72.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.065e-05/0.6188, allocations: 12 kB / 0.5392 GB, free: 72.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.078e-05/0.6189, allocations: 318 kB / 0.5395 GB, free: 72.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.6193, allocations: 217 kB / 0.5397 GB, free: 72.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/0.6197, allocations: 406 kB / 0.5401 GB, free: 71.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007587/0.6205, allocations: 0.5285 MB / 0.5406 GB, free: 71.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.6205, allocations: 0 / 0.5406 GB, free: 71.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001281/0.6218, allocations: 0.7829 MB / 0.5414 GB, free: 70.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.6218, allocations: 8 kB / 0.5414 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.6218, allocations: 7.984 kB / 0.5414 GB, free: 70.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.6221, allocations: 73.02 kB / 0.5415 GB, free: 70.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.6226, allocations: 119.8 kB / 0.5416 GB, free: 70.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.6239, allocations: 1.65 MB / 0.5432 GB, free: 68.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.6245, allocations: 79.59 kB / 0.5433 GB, free: 68.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.6246, allocations: 20 kB / 0.5433 GB, free: 68.36 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001104/0.6257, allocations: 0.6618 MB / 0.5439 GB, free: 67.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.6259, allocations: 189.6 kB / 0.5441 GB, free: 67.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.6271, allocations: 0.6531 MB / 0.5448 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.6271, allocations: 4 kB / 0.5448 GB, free: 66.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.6271, allocations: 3.938 kB / 0.5448 GB, free: 66.83 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.6271, allocations: 3.984 kB / 0.5448 GB, free: 66.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.6299, allocations: 2.232 MB / 0.5469 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.6299, allocations: 0 / 0.5469 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.6303, allocations: 87.83 kB / 0.547 GB, free: 64.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/0.6305, allocations: 68.88 kB / 0.5471 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.6306, allocations: 4 kB / 0.5471 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.6318, allocations: 1.604 MB / 0.5487 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.6319, allocations: 0 / 0.5487 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.6334, allocations: 0.961 MB / 0.5496 GB, free: 61.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007892/0.6342, allocations: 0.7555 MB / 0.5503 GB, free: 60.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.6344, allocations: 11.98 kB / 0.5504 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005205/0.6349, allocations: 63.95 kB / 0.5504 GB, free: 60.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.635, allocations: 39.94 kB / 0.5505 GB, free: 60.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.6351, allocations: 8 kB / 0.5505 GB, free: 60.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002839/0.6379, allocations: 2.24 MB / 0.5526 GB, free: 58.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6379, allocations: 0 / 0.5526 GB, free: 58.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001022/0.639, allocations: 299.5 kB / 0.5529 GB, free: 58.13 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009923/0.64, allocations: 448.5 kB / 0.5534 GB, free: 57.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.6411, allocations: 0.6335 MB / 0.554 GB, free: 57.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6411, allocations: 3.938 kB / 0.554 GB, free: 57.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000517/0.6417, allocations: 367.2 kB / 0.5543 GB, free: 56.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.643, allocations: 279.1 kB / 0.5546 GB, free: 56.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005841/0.6489, allocations: 4.136 MB / 0.5586 GB, free: 52.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008929/0.6498, allocations: 1.497 MB / 0.5601 GB, free: 50.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008938/0.6507, allocations: 307 kB / 0.5604 GB, free: 50.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.651, allocations: 103.4 kB / 0.5605 GB, free: 50.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.651, allocations: 0 / 0.5605 GB, free: 50.41 MB / 378.7 MB Notification: Performance of Templates: time 0.03111/0.6821, allocations: 20.4 MB / 0.5804 GB, free: 30.11 MB / 378.7 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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches