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.001285/0.001285, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 68.25 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09991, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007998/0.1079, allocations: 5.538 MB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.1114, allocations: 1.878 MB / 365.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.1119, allocations: 15.94 kB / 365.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.1131, allocations: 0.5291 MB / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008557/0.1139, allocations: 386 kB / 366.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000876/0.1148, allocations: 367 kB / 366.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.1159, allocations: 0.8965 MB / 367.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005318/0.1165, allocations: 340.8 kB / 368.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004635/0.117, allocations: 366.8 kB / 368.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.1175, allocations: 438.4 kB / 368.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1176, allocations: 80 kB / 369 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.1178, allocations: 124 kB / 369.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005798/0.1184, allocations: 0.5843 MB / 369.7 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006832/0.1191, allocations: 0.7415 MB / 370.4 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.153/0.2721, allocations: 2.093 MB / 372.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2722, allocations: 1.344 kB / 372.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2722, allocations: 0 / 372.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.929e-05/0.2722, allocations: 2.812 kB / 372.5 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.003704/0.276, allocations: 2.074 MB / 374.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.276, allocations: 12 kB / 374.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003584/0.2764, allocations: 190.2 kB / 374.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/0.2788, allocations: 1.487 MB / 376.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.279, allocations: 93.27 kB / 376.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-05/0.2791, allocations: 48.88 kB / 376.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.2801, allocations: 0.587 MB / 377 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2801, allocations: 0 / 377 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/0.2802, allocations: 24.67 kB / 377 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.2802, allocations: 11.28 kB / 377 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006843/0.2809, allocations: 348.5 kB / 377.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004783/0.2857, allocations: 3.256 MB / 380.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.2868, allocations: 395.8 kB / 381 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.2873, allocations: 182.5 kB / 381.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.2874, allocations: 3.016 kB / 381.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.2874, allocations: 41.8 kB / 381.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.665e-06/0.2874, allocations: 0 / 381.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001976/0.2894, allocations: 0.6985 MB / 381.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.2895, allocations: 214.5 kB / 382.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003976/0.2935, allocations: 2.893 MB / 385 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.867e-05/0.2936, allocations: 31.05 kB / 385.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005978/0.2942, allocations: 0.7896 MB / 385.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.471e-05/0.2942, allocations: 72.42 kB / 385.9 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.2944, allocations: 65.61 kB / 386 MB, free: 7.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.905e-05/0.2944, allocations: 325.1 kB / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.2948, allocations: 121.6 kB / 386.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003981/0.2952, allocations: 292.8 kB / 386.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/0.2958, allocations: 359.6 kB / 387.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2958, allocations: 0.9375 kB / 387.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001289/0.2971, allocations: 0.5579 MB / 387.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.2972, allocations: 10.94 kB / 387.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.2972, allocations: 8.188 kB / 387.6 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.2975, allocations: 59.45 kB / 387.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.2978, allocations: 72.12 kB / 387.8 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.2991, allocations: 1.73 MB / 389.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006543/0.2998, allocations: 60.45 kB / 389.6 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.2998, allocations: 16.28 kB / 389.6 MB, free: 5.043 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.0007339/0.3005, allocations: 0.58 MB / 390.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002675/0.3008, allocations: 172 kB / 390.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.302, allocations: 0.5096 MB / 390.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3021, allocations: 2.281 kB / 390.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3021, allocations: 1.156 kB / 390.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3021, allocations: 4 kB / 390.8 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/0.3046, allocations: 1.702 MB / 392.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3046, allocations: 1.125 kB / 392.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.3049, allocations: 49.72 kB / 392.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.305, allocations: 45.33 kB / 392.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.305, allocations: 5.375 kB / 392.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.3061, allocations: 1.673 MB / 394.3 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3061, allocations: 4 kB / 394.3 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.3076, allocations: 0.7067 MB / 395 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005738/0.3082, allocations: 383.2 kB / 395.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.3084, allocations: 7.594 kB / 395.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.3088, allocations: 49.98 kB / 395.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.09e-05/0.3089, allocations: 30.31 kB / 395.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.3089, allocations: 4.969 kB / 395.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002694/0.3116, allocations: 2.076 MB / 397.6 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3117, allocations: 0 / 397.6 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008936/0.3126, allocations: 191.1 kB / 397.7 MB, free: 0.5703 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.001231/0.3138, allocations: 366 kB / 398.1 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.3148, allocations: 450.4 kB / 398.5 MB, free: 148 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3149, allocations: 0 / 398.5 MB, free: 148 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004925/0.3154, allocations: 268.8 kB / 398.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3166, allocations: 228.3 kB / 399 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00551/0.3222, allocations: 3.153 MB / 402.2 MB, free: 13.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.3234, allocations: 1.363 MB / 403.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.3238, allocations: 79.44 kB / 403.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of SimCode: time 3.096e-06/0.3238, allocations: 3.938 kB / 403.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of Templates: time 0.03843/0.3622, allocations: 24.79 MB / 428.4 MB, free: 3.305 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.1.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