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.001373/0.001374, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 203.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.7 MB / 246.8 MB, free: 11.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.0002241, allocations: 11.94 kB / 307.7 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09861, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005837/0.1045, allocations: 5.114 MB / 364.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003422/0.108, allocations: 1.816 MB / 366.2 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000778/0.1088, allocations: 15.88 kB / 366.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.1104, allocations: 0.4945 MB / 366.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.1116, allocations: 346.5 kB / 367 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009447/0.1125, allocations: 334.5 kB / 367.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.1138, allocations: 0.834 MB / 368.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006302/0.1145, allocations: 299.6 kB / 368.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005932/0.1151, allocations: 290.7 kB / 368.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005853/0.1157, allocations: 394.4 kB / 369.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.1158, allocations: 32 kB / 369.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002589/0.1161, allocations: 71.98 kB / 369.3 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000482/0.1166, allocations: 0.5413 MB / 369.8 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008103/0.1174, allocations: 0.6886 MB / 370.5 MB, free: 2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1758/0.2932, allocations: 1.995 MB / 372.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2933, allocations: 4.312 kB / 372.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2933, allocations: 0 / 372.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.733e-05/0.2934, allocations: 0 / 372.5 MB, free: 12.48 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.003596/0.297, allocations: 1.81 MB / 374.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.297, allocations: 9.938 kB / 374.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.2974, allocations: 186.5 kB / 374.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.2998, allocations: 1.488 MB / 376 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002543/0.3, allocations: 99.02 kB / 376.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.3001, allocations: 50.31 kB / 376.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.3014, allocations: 0.5972 MB / 376.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.3014, allocations: 2.625 kB / 376.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.703e-05/0.3015, allocations: 22 kB / 376.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.3015, allocations: 11 kB / 376.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008273/0.3023, allocations: 357.4 kB / 377.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006659/0.309, allocations: 3.291 MB / 380.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.3108, allocations: 433.6 kB / 380.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007884/0.3116, allocations: 198.7 kB / 381 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.298e-05/0.3117, allocations: 5.312 kB / 381 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.3117, allocations: 36.48 kB / 381.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.787e-06/0.3117, allocations: 0 / 381.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.003531/0.3153, allocations: 0.7467 MB / 381.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.3154, allocations: 214.7 kB / 382 MB, free: 9.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006448/0.3219, allocations: 2.9 MB / 384.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.322, allocations: 35.8 kB / 385 MB, free: 8.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008634/0.3229, allocations: 0.7841 MB / 385.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.363e-05/0.323, allocations: 71.88 kB / 385.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.893e-05/0.323, allocations: 32.64 kB / 385.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.3231, allocations: 320.8 kB / 386.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000522/0.3236, allocations: 132.1 kB / 386.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005963/0.3242, allocations: 304.7 kB / 386.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.3253, allocations: 383.2 kB / 387 MB, free: 6.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.3253, allocations: 2.375 kB / 387 MB, free: 6.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001953/0.3272, allocations: 0.5859 MB / 387.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.3273, allocations: 7.312 kB / 387.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.3273, allocations: 3.375 kB / 387.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/0.3277, allocations: 61.12 kB / 387.6 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.3281, allocations: 80.59 kB / 387.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.3298, allocations: 1.586 MB / 389.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009121/0.3308, allocations: 69.67 kB / 389.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/0.3308, allocations: 12.39 kB / 389.4 MB, free: 5.098 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.00102/0.3319, allocations: 0.5843 MB / 389.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/0.3322, allocations: 161.2 kB / 390.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.3339, allocations: 0.5447 MB / 390.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3339, allocations: 2 kB / 390.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.3339, allocations: 6.812 kB / 390.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.3339, allocations: 2.828 kB / 390.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.3369, allocations: 1.726 MB / 392.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.337, allocations: 5.406 kB / 392.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002273/0.3372, allocations: 52.8 kB / 392.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.3374, allocations: 50.86 kB / 392.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.3374, allocations: 14.64 kB / 392.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3384, allocations: 1.514 MB / 394 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3385, allocations: 4.031 kB / 394 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.3399, allocations: 0.7569 MB / 394.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.3405, allocations: 393 kB / 395.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.3406, allocations: 6.625 kB / 395.2 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.341, allocations: 59.39 kB / 395.2 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.3411, allocations: 32.09 kB / 395.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3412, allocations: 3.938 kB / 395.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002428/0.3436, allocations: 2.076 MB / 397.3 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3436, allocations: 4 kB / 397.3 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006983/0.3443, allocations: 196.8 kB / 397.5 MB, free: 0.793 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.0007328/0.3451, allocations: 360.6 kB / 397.9 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009477/0.346, allocations: 463.5 kB / 398.3 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.346, allocations: 3 kB / 398.3 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004832/0.3465, allocations: 284.6 kB / 398.6 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.3476, allocations: 213.3 kB / 398.8 MB, free: 72 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.3527, allocations: 3.502 MB / 402.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.3537, allocations: 1.359 MB / 403.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005091/0.3543, allocations: 244.3 kB / 403.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.3545, allocations: 75.44 kB / 404 MB, free: 11.32 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3545, allocations: 4 kB / 404 MB, free: 11.32 MB / 318.1 MB Notification: Performance of Templates: time 0.0268/0.3813, allocations: 14.42 MB / 418.4 MB, free: 12.99 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