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.001277/0.001276, allocations: 117.3 kB / 17.98 MB, free: 5.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001499, allocations: 201.8 kB / 18.92 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.1 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 63.39 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1334, allocations: 50.54 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01151/0.145, allocations: 5.535 MB / 363.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00512/0.1501, allocations: 1.843 MB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008466/0.1511, allocations: 15.94 kB / 365 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.153, allocations: 0.5061 MB / 365.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.1547, allocations: 334.5 kB / 365.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001541/0.1563, allocations: 347.3 kB / 366.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001933/0.1582, allocations: 0.8925 MB / 367.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009226/0.1592, allocations: 328.8 kB / 367.4 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008138/0.16, allocations: 370.7 kB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009078/0.1609, allocations: 446.4 kB / 368.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002545/0.1612, allocations: 84 kB / 368.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004616/0.1617, allocations: 120 kB / 368.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007884/0.1625, allocations: 0.5921 MB / 369 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.1638, allocations: 0.7454 MB / 369.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002197/0.166, allocations: 1.781 MB / 371.5 MB, free: 488 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.166, allocations: 0 / 371.5 MB, free: 488 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.166, allocations: 3.938 kB / 371.5 MB, free: 484 kB / 302.1 MB Notification: Performance of Transformations before backend: time 9.259e-05/0.1661, allocations: 0 / 371.5 MB, free: 484 kB / 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.1615/0.3276, allocations: 2.078 MB / 373.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.3277, allocations: 9.594 kB / 373.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005219/0.3282, allocations: 187.8 kB / 373.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.3311, allocations: 1.487 MB / 375.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002713/0.3314, allocations: 95.14 kB / 375.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3315, allocations: 50.7 kB / 375.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.3327, allocations: 0.5813 MB / 376 MB, free: 18.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.3327, allocations: 8.578 kB / 376 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/0.3328, allocations: 22.84 kB / 376 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3328, allocations: 12.38 kB / 376.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007137/0.3335, allocations: 342.4 kB / 376.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/0.3381, allocations: 3.258 MB / 379.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3392, allocations: 388.7 kB / 380 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004638/0.3397, allocations: 185.5 kB / 380.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-05/0.3397, allocations: 6.25 kB / 380.2 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.3397, allocations: 42.47 kB / 380.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.026e-06/0.3398, allocations: 0 / 380.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001839/0.3416, allocations: 0.6918 MB / 381 MB, free: 15.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.3417, allocations: 217.5 kB / 381.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003617/0.3453, allocations: 2.901 MB / 384.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.3453, allocations: 30.98 kB / 384.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005694/0.3459, allocations: 0.7874 MB / 384.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.346, allocations: 70.19 kB / 385 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3461, allocations: 74.67 kB / 385 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.913e-05/0.3462, allocations: 321.2 kB / 385.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/0.3465, allocations: 118.1 kB / 385.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/0.3469, allocations: 293.3 kB / 385.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006544/0.3476, allocations: 361.9 kB / 386.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3476, allocations: 1.094 kB / 386.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001221/0.3488, allocations: 0.5566 MB / 386.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3489, allocations: 10.66 kB / 386.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3489, allocations: 5.125 kB / 386.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/0.3492, allocations: 63.42 kB / 386.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.3495, allocations: 71.16 kB / 386.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.3508, allocations: 1.726 MB / 388.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.3514, allocations: 63 kB / 388.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.3515, allocations: 16.25 kB / 388.6 MB, free: 11.06 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.0007187/0.3522, allocations: 0.5742 MB / 389.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.3524, allocations: 165.6 kB / 389.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.3536, allocations: 0.5192 MB / 389.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3536, allocations: 7.625 kB / 389.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.3536, allocations: 0.5469 kB / 389.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3536, allocations: 2.156 kB / 389.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.3563, allocations: 1.704 MB / 391.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3563, allocations: 1.062 kB / 391.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.3565, allocations: 41.59 kB / 391.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.3567, allocations: 45.05 kB / 391.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.3567, allocations: 6.438 kB / 391.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.3577, allocations: 1.669 MB / 393.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3578, allocations: 13 kB / 393.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.3593, allocations: 0.7029 MB / 394 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/0.3598, allocations: 384.1 kB / 394.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.36, allocations: 9.312 kB / 394.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.3604, allocations: 46.08 kB / 394.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.3605, allocations: 33.66 kB / 394.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.3605, allocations: 4.125 kB / 394.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.3629, allocations: 2.076 MB / 396.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3629, allocations: 1.531 kB / 396.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007511/0.3637, allocations: 202.5 kB / 396.8 MB, free: 6.164 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.0007607/0.3644, allocations: 352.4 kB / 397.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009274/0.3654, allocations: 454.2 kB / 397.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3654, allocations: 3.938 kB / 397.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004333/0.3658, allocations: 265.4 kB / 397.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3669, allocations: 240.3 kB / 398.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004097/0.371, allocations: 3.564 MB / 401.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000676/0.3717, allocations: 1.351 MB / 403 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.3719, allocations: 83.38 kB / 403.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3719, allocations: 4 kB / 403.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of Templates: time 0.03303/0.405, allocations: 24.77 MB / 427.8 MB, free: 7.84 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/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