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.001131/0.001131, allocations: 111.6 kB / 17.29 MB, free: 6.188 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.00105/0.00105, allocations: 193.3 kB / 18.21 MB, free: 5.266 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.36/1.36, allocations: 222.9 MB / 241.9 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009696/0.0009696, allocations: 41.44 kB / 300.8 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09677, allocations: 49.45 MB / 350.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006524/0.1033, allocations: 5.494 MB / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.1059, allocations: 1.676 MB / 357.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002824/0.1062, allocations: 11.94 kB / 357.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009352/0.1072, allocations: 0.4983 MB / 357.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005196/0.1077, allocations: 314.6 kB / 358.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006898/0.1084, allocations: 334.6 kB / 358.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008538/0.1093, allocations: 0.8886 MB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004623/0.1098, allocations: 340.8 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.1102, allocations: 366.8 kB / 360.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.1106, allocations: 446.4 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.257e-05/0.1107, allocations: 76 kB / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1109, allocations: 124 kB / 360.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004186/0.1113, allocations: 0.5844 MB / 361.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005753/0.1119, allocations: 0.7415 MB / 362.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.1133, allocations: 1.781 MB / 363.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1134, allocations: 8 kB / 363.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1134, allocations: 0 / 363.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.1134, allocations: 0 / 363.9 MB, free: 6.848 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.00286/0.1163, allocations: 2.075 MB / 366 MB, free: 4.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1163, allocations: 11.89 kB / 366 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.1166, allocations: 186.6 kB / 366.1 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.1184, allocations: 1.482 MB / 367.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/0.1187, allocations: 90.67 kB / 367.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.147e-05/0.1187, allocations: 48 kB / 367.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1198, allocations: 0.5892 MB / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1198, allocations: 0 / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.701e-05/0.1199, allocations: 20 kB / 368.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.1199, allocations: 16 kB / 368.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006783/0.1206, allocations: 339.8 kB / 368.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1661/0.2866, allocations: 3.259 MB / 372 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.2879, allocations: 383.3 kB / 372.4 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004868/0.2884, allocations: 182.7 kB / 372.5 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.2885, allocations: 7.5 kB / 372.5 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.2885, allocations: 37.67 kB / 372.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.255e-06/0.2885, allocations: 0 / 372.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002019/0.2905, allocations: 0.6925 MB / 373.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.2906, allocations: 210.2 kB / 373.5 MB, free: 23.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004028/0.2947, allocations: 2.887 MB / 376.4 MB, free: 22.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.2947, allocations: 32.55 kB / 376.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005988/0.2953, allocations: 0.788 MB / 377.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.303e-05/0.2954, allocations: 76.09 kB / 377.3 MB, free: 21.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.2955, allocations: 70.42 kB / 377.3 MB, free: 21.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.496e-05/0.2956, allocations: 320.1 kB / 377.6 MB, free: 21.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.2959, allocations: 123.1 kB / 377.8 MB, free: 21.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.2964, allocations: 290 kB / 378 MB, free: 20.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007661/0.2971, allocations: 363.8 kB / 378.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.2972, allocations: 1.281 kB / 378.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001174/0.2983, allocations: 0.5611 MB / 379 MB, free: 20.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2984, allocations: 6.375 kB / 379 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.2984, allocations: 4.125 kB / 379 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.2987, allocations: 61.36 kB / 379 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.299, allocations: 79.75 kB / 379.1 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.3003, allocations: 1.718 MB / 380.8 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004827/0.3008, allocations: 63.98 kB / 380.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.3008, allocations: 19.41 kB / 380.9 MB, free: 18.8 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.0006817/0.3015, allocations: 0.5799 MB / 381.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.3017, allocations: 167.2 kB / 381.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.3029, allocations: 0.5059 MB / 382.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3029, allocations: 2.188 kB / 382.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.3029, allocations: 3.938 kB / 382.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3029, allocations: 6.75 kB / 382.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.3056, allocations: 1.687 MB / 383.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3057, allocations: 4.969 kB / 383.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.306, allocations: 50.56 kB / 383.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.3061, allocations: 49.31 kB / 384 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3062, allocations: 6.844 kB / 384 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.3073, allocations: 1.676 MB / 385.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3073, allocations: 1.953 kB / 385.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.3087, allocations: 0.7093 MB / 386.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005175/0.3093, allocations: 379.6 kB / 386.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.3094, allocations: 6.906 kB / 386.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/0.3098, allocations: 47.09 kB / 386.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.644e-05/0.31, allocations: 30.48 kB / 386.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.31, allocations: 6.766 kB / 386.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00279/0.3128, allocations: 2.064 MB / 388.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3128, allocations: 0 / 388.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008109/0.3136, allocations: 203.6 kB / 389.1 MB, free: 14.47 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.0008278/0.3144, allocations: 367.1 kB / 389.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.3155, allocations: 457.2 kB / 389.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3155, allocations: 0 / 389.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004807/0.316, allocations: 269.2 kB / 390.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.3171, allocations: 230.2 kB / 390.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.322, allocations: 3.6 MB / 394 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006872/0.3227, allocations: 1.354 MB / 395.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.323, allocations: 79.62 kB / 395.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of SimCode: time 1.203e-06/0.323, allocations: 2.719 kB / 395.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Templates: time 0.02941/0.3524, allocations: 24.65 MB / 420 MB, free: 2.82 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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