Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.001599, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3312, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01067/0.3419, allocations: 5.492 MB / 406.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004024/0.346, allocations: 1.707 MB / 407.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006897/0.3467, allocations: 15.94 kB / 407.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.3483, allocations: 0.5213 MB / 408.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001189/0.3495, allocations: 354.1 kB / 408.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.3508, allocations: 374.6 kB / 409.2 MB, free: 412 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.3524, allocations: 0.9003 MB / 410.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009791/0.3534, allocations: 336.7 kB / 410.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008891/0.3543, allocations: 366.8 kB / 410.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.3557, allocations: 442.4 kB / 411.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003172/0.356, allocations: 76 kB / 411.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005246/0.3565, allocations: 124 kB / 411.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007636/0.3573, allocations: 0.5922 MB / 412 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.3589, allocations: 0.7337 MB / 412.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003151/0.3621, allocations: 2.122 MB / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3621, allocations: 0 / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3622, allocations: 0 / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.934e-05/0.3623, allocations: 0 / 414.8 MB, free: 10.7 MB / 334.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.006124/0.3684, allocations: 2.064 MB / 416.9 MB, free: 8.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.3685, allocations: 15.89 kB / 416.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005587/0.369, allocations: 194.5 kB / 417.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004035/0.3731, allocations: 1.498 MB / 418.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.3732, allocations: 62.7 kB / 418.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3734, allocations: 48 kB / 418.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.375, allocations: 0.5854 MB / 419.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.375, allocations: 0 / 419.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.3751, allocations: 20 kB / 419.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.3751, allocations: 15.98 kB / 419.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.3762, allocations: 351.7 kB / 419.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007208/0.3834, allocations: 3.234 MB / 422.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.3849, allocations: 376.9 kB / 423.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006228/0.3855, allocations: 188.7 kB / 423.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.3856, allocations: 4 kB / 423.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.3856, allocations: 38.56 kB / 423.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.385e-06/0.3857, allocations: 0 / 423.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002588/0.3883, allocations: 0.6999 MB / 424.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.3884, allocations: 213.6 kB / 424.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00597/0.3944, allocations: 2.88 MB / 427.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.3945, allocations: 29.7 kB / 427.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.3955, allocations: 0.7931 MB / 428.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.3956, allocations: 67 kB / 428.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.3958, allocations: 69.94 kB / 428.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.396, allocations: 326 kB / 428.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.3964, allocations: 120.5 kB / 428.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.397, allocations: 288.9 kB / 429 MB, free: 12.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009543/0.398, allocations: 358.1 kB / 429.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.398, allocations: 0 / 429.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001948/0.4, allocations: 0.5564 MB / 429.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.4, allocations: 16.03 kB / 429.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4001, allocations: 4 kB / 429.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.4005, allocations: 64.81 kB / 429.9 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004347/0.4009, allocations: 75.83 kB / 430 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.4034, allocations: 1.724 MB / 431.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007923/0.4042, allocations: 59.56 kB / 431.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.4042, allocations: 16 kB / 431.8 MB, free: 8.996 MB / 350.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.001031/0.4053, allocations: 0.5835 MB / 432.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004629/0.4057, allocations: 165.9 kB / 432.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.4075, allocations: 0.5064 MB / 433.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.4075, allocations: 0 / 433.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4075, allocations: 0 / 433.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4075, allocations: 7.984 kB / 433.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.4116, allocations: 1.688 MB / 434.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.4116, allocations: 0 / 434.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.412, allocations: 51.94 kB / 434.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002241/0.4122, allocations: 48.83 kB / 434.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.4122, allocations: 0 / 434.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002006/0.4143, allocations: 1.673 MB / 436.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4143, allocations: 96 / 436.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.4163, allocations: 0.7099 MB / 437.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009046/0.4173, allocations: 383 kB / 437.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002864/0.4176, allocations: 192 / 437.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007134/0.4183, allocations: 43.95 kB / 437.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.4184, allocations: 39.94 kB / 437.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.4185, allocations: 8 kB / 437.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004342/0.4228, allocations: 2.063 MB / 439.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4228, allocations: 0 / 439.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001333/0.4242, allocations: 207.5 kB / 440 MB, free: 0.5273 MB / 350.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.001237/0.4254, allocations: 359.3 kB / 440.3 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.427, allocations: 441.3 kB / 440.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.427, allocations: 0.75 kB / 440.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007325/0.4277, allocations: 270.6 kB / 441 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.4294, allocations: 221.3 kB / 441.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007443/0.4369, allocations: 3.056 MB / 444.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/0.4385, allocations: 1.351 MB / 445.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007915/0.4393, allocations: 237.7 kB / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/0.4397, allocations: 83.44 kB / 446 MB, free: 10.58 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4397, allocations: 4 kB / 446 MB, free: 10.57 MB / 366.1 MB Notification: Performance of Templates: time 0.04052/0.4802, allocations: 15.72 MB / 461.7 MB, free: 10.93 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches