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.001247/0.001248, allocations: 103 kB / 17.32 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 209.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.4 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 60.81 kB / 306.4 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1047, allocations: 50.53 MB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007091/0.1118, allocations: 5.545 MB / 362.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.1149, allocations: 1.836 MB / 364.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.1152, allocations: 15.94 kB / 364.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.1163, allocations: 0.4983 MB / 364.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006674/0.1169, allocations: 346.5 kB / 365.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000685/0.1176, allocations: 331 kB / 365.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008619/0.1185, allocations: 0.9042 MB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005089/0.119, allocations: 332.8 kB / 366.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000384/0.1194, allocations: 366.7 kB / 367.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004718/0.1199, allocations: 450.4 kB / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.858e-05/0.12, allocations: 80 kB / 367.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.1202, allocations: 120 kB / 367.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004664/0.1207, allocations: 0.5921 MB / 368.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00061/0.1213, allocations: 0.7454 MB / 369.1 MB, free: 2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2213/0.3426, allocations: 2.088 MB / 371.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3427, allocations: 0 / 371.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3427, allocations: 0 / 371.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.776e-05/0.3428, allocations: 0.5625 kB / 371.2 MB, free: 13.1 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.004255/0.3471, allocations: 2.081 MB / 373.3 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.3471, allocations: 9.281 kB / 373.3 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.3475, allocations: 187.2 kB / 373.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.3497, allocations: 1.493 MB / 374.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/0.35, allocations: 94.83 kB / 375 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.991e-05/0.3501, allocations: 52.47 kB / 375.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3512, allocations: 0.5832 MB / 375.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3512, allocations: 0.9062 kB / 375.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.3513, allocations: 19.94 kB / 375.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.3513, allocations: 13.03 kB / 375.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.3521, allocations: 350.2 kB / 376 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005267/0.3574, allocations: 3.247 MB / 379.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.3586, allocations: 392.6 kB / 379.7 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004909/0.3591, allocations: 182.5 kB / 379.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.3592, allocations: 5.766 kB / 379.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.3592, allocations: 37.5 kB / 379.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.3592, allocations: 1.312 kB / 379.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002097/0.3613, allocations: 0.7017 MB / 380.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.3614, allocations: 210.2 kB / 380.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/0.3657, allocations: 2.898 MB / 383.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.149e-05/0.3658, allocations: 32.78 kB / 383.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006282/0.3664, allocations: 0.7818 MB / 384.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.65e-05/0.3665, allocations: 79.22 kB / 384.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3667, allocations: 70.5 kB / 384.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.3667, allocations: 316.8 kB / 385 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.3671, allocations: 122.4 kB / 385.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.3675, allocations: 290.4 kB / 385.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006899/0.3682, allocations: 366.2 kB / 385.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3683, allocations: 1.375 kB / 385.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001417/0.3697, allocations: 0.5663 MB / 386.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.3697, allocations: 6 kB / 386.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.3697, allocations: 4.281 kB / 386.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000335/0.3701, allocations: 54.7 kB / 386.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.3704, allocations: 77.58 kB / 386.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.3719, allocations: 1.73 MB / 388.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.3725, allocations: 60.08 kB / 388.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.3726, allocations: 20.88 kB / 388.2 MB, free: 4.902 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.000898/0.3735, allocations: 0.5731 MB / 388.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.3737, allocations: 168.4 kB / 389 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.375, allocations: 0.513 MB / 389.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.375, allocations: 2.156 kB / 389.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.375, allocations: 0 / 389.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.375, allocations: 2.781 kB / 389.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002965/0.378, allocations: 1.696 MB / 391.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.378, allocations: 1.156 kB / 391.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.3783, allocations: 46.73 kB / 391.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001739/0.3785, allocations: 46.22 kB / 391.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.3785, allocations: 7.844 kB / 391.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.3797, allocations: 1.674 MB / 393 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3797, allocations: 0 / 393 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3812, allocations: 0.7101 MB / 393.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005356/0.3817, allocations: 391.8 kB / 394.1 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.3819, allocations: 10.78 kB / 394.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.3823, allocations: 42.17 kB / 394.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3824, allocations: 32.78 kB / 394.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.3825, allocations: 9.688 kB / 394.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002975/0.3854, allocations: 2.074 MB / 396.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.3854, allocations: 4 kB / 396.2 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008753/0.3863, allocations: 194.3 kB / 396.4 MB, free: 0.5312 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.0008645/0.3872, allocations: 358.5 kB / 396.8 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.3882, allocations: 450.7 kB / 397.2 MB, free: 124 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.3883, allocations: 2.625 kB / 397.2 MB, free: 124 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004838/0.3888, allocations: 272 kB / 397.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.3899, allocations: 223.6 kB / 397.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005756/0.3957, allocations: 3.451 MB / 401.2 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.3968, allocations: 1.355 MB / 402.5 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006265/0.3974, allocations: 245.7 kB / 402.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.3976, allocations: 79.44 kB / 402.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3977, allocations: 0 / 402.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of Templates: time 0.03053/0.4282, allocations: 15.29 MB / 418.1 MB, free: 12.58 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.0.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