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/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_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/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 62.73 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.0956, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008245/0.1039, allocations: 6.056 MB / 365 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004021/0.108, allocations: 2.295 MB / 367.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006309/0.1086, allocations: 23.88 kB / 367.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.1102, allocations: 0.6418 MB / 367.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.1113, allocations: 433.7 kB / 368.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009636/0.1123, allocations: 410.8 kB / 368.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001653/0.1139, allocations: 1.313 MB / 370 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007581/0.1147, allocations: 481.7 kB / 370.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007003/0.1154, allocations: 0.4906 MB / 371 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008453/0.1163, allocations: 0.5799 MB / 371.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.1165, allocations: 116 kB / 371.7 MB, free: 476 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003513/0.1168, allocations: 180 kB / 371.9 MB, free: 296 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.16/0.2768, allocations: 0.652 MB / 372.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009857/0.2778, allocations: 0.8883 MB / 373.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002746/0.2806, allocations: 2.633 MB / 376.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2806, allocations: 0 / 376.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2806, allocations: 0 / 376.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.591e-05/0.2806, allocations: 1.094 kB / 376.1 MB, free: 12.95 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004476/0.2851, allocations: 2.372 MB / 378.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2852, allocations: 10.38 kB / 378.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000396/0.2856, allocations: 210.1 kB / 378.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002954/0.2885, allocations: 1.674 MB / 380.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.2887, allocations: 101.8 kB / 380.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.2888, allocations: 69.17 kB / 380.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.2903, allocations: 0.8291 MB / 381.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2903, allocations: 0.8906 kB / 381.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.518e-05/0.2904, allocations: 27.97 kB / 381.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.2904, allocations: 15.22 kB / 381.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/0.2914, allocations: 0.5505 MB / 381.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00645/0.2978, allocations: 3.983 MB / 385.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.2992, allocations: 0.5343 MB / 386.4 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008919/0.3001, allocations: 359.3 kB / 386.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.3002, allocations: 3.969 kB / 386.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.3002, allocations: 38.09 kB / 386.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.975e-06/0.3002, allocations: 1.062 kB / 386.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002552/0.3028, allocations: 0.9442 MB / 387.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.3029, allocations: 266.2 kB / 388 MB, free: 7.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/0.3072, allocations: 3.165 MB / 391.2 MB, free: 6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.3072, allocations: 33.83 kB / 391.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005954/0.3078, allocations: 0.8528 MB / 392.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.816e-05/0.3079, allocations: 117.4 kB / 392.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.3081, allocations: 100.7 kB / 392.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.162e-05/0.3081, allocations: 318.1 kB / 392.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004241/0.3085, allocations: 212.8 kB / 392.8 MB, free: 4.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.3091, allocations: 399.5 kB / 393.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008178/0.3099, allocations: 0.5235 MB / 393.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3099, allocations: 0 / 393.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001453/0.3114, allocations: 0.7729 MB / 394.5 MB, free: 3.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3114, allocations: 14.28 kB / 394.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3114, allocations: 3.281 kB / 394.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003259/0.3118, allocations: 68.44 kB / 394.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.3122, allocations: 110.1 kB / 394.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.3137, allocations: 1.797 MB / 396.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007301/0.3144, allocations: 73.78 kB / 396.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.3145, allocations: 28.8 kB / 396.6 MB, free: 1.742 MB / 302.1 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 (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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0009961/0.3155, allocations: 0.6655 MB / 397.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003149/0.3158, allocations: 184 kB / 397.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003687/0.3162, allocations: 223.4 kB / 397.6 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3162, allocations: 3.781 kB / 397.6 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3162, allocations: 0 / 397.6 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3162, allocations: 7.828 kB / 397.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.3199, allocations: 2.148 MB / 399.8 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3199, allocations: 0 / 399.8 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.3203, allocations: 89.88 kB / 399.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/0.3205, allocations: 57.97 kB / 399.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.3205, allocations: 7.812 kB / 400 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/0.322, allocations: 1.739 MB / 401.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.322, allocations: 3.938 kB / 401.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.324, allocations: 0.9854 MB / 402.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/0.325, allocations: 444 kB / 403.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/0.3253, allocations: 12.14 kB / 403.1 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000687/0.326, allocations: 53.58 kB / 403.2 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.3262, allocations: 37.19 kB / 403.2 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.3262, allocations: 16.45 kB / 403.2 MB, free: 13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00351/0.3297, allocations: 2.254 MB / 405.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3297, allocations: 0 / 405.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001024/0.3307, allocations: 255.5 kB / 405.7 MB, free: 10.89 MB / 318.1 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 (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 Backend phase and start with SimCode phase: time 0.001118/0.3319, allocations: 471.7 kB / 406.2 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.3332, allocations: 0.6161 MB / 406.8 MB, free: 9.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3332, allocations: 0 / 406.8 MB, free: 9.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006136/0.3338, allocations: 358.2 kB / 407.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.335, allocations: 288.2 kB / 407.4 MB, free: 9.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.3406, allocations: 3.571 MB / 411 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.3418, allocations: 1.497 MB / 412.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006515/0.3425, allocations: 303.1 kB / 412.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.3428, allocations: 91.44 kB / 412.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of SimCode: time 1.763e-06/0.3428, allocations: 0 / 412.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of Templates: time 0.03249/0.3753, allocations: 17.02 MB / 429.9 MB, free: 3.008 MB / 334.1 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches