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.001459/0.001459, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001712/0.001712, allocations: 192 kB / 18.62 MB, free: 4.434 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.353/1.353, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009872/0.0009873, allocations: 51.3 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09487, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007442/0.1024, allocations: 5.487 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.1054, allocations: 1.723 MB / 358.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005785/0.106, allocations: 11.94 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001163/0.1072, allocations: 0.5135 MB / 359.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007958/0.108, allocations: 354.1 kB / 359.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.1089, allocations: 362 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.11, allocations: 0.9041 MB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005094/0.1105, allocations: 332.8 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005196/0.111, allocations: 362.8 kB / 361.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005774/0.1116, allocations: 438.4 kB / 361.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.1117, allocations: 80 kB / 362 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.112, allocations: 123.9 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.1124, allocations: 0.5805 MB / 362.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006348/0.1131, allocations: 0.7455 MB / 363.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.1147, allocations: 2.114 MB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1147, allocations: 0 / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1148, allocations: 0 / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.1148, allocations: 0 / 365.6 MB, free: 5.566 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.003005/0.1178, allocations: 2.075 MB / 367.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1178, allocations: 15.89 kB / 367.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.1181, allocations: 186.6 kB / 367.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.1204, allocations: 1.49 MB / 369.3 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.299e-05/0.1205, allocations: 66.69 kB / 369.4 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.958e-05/0.1206, allocations: 48 kB / 369.4 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009636/0.1216, allocations: 0.5854 MB / 370 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1216, allocations: 3.938 kB / 370 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.1216, allocations: 20 kB / 370.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1216, allocations: 12 kB / 370.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006728/0.1223, allocations: 347.8 kB / 370.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1895/0.3118, allocations: 3.235 MB / 373.6 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.3135, allocations: 377.3 kB / 374 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007005/0.3142, allocations: 186.6 kB / 374.2 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.3143, allocations: 2.812 kB / 374.2 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.3143, allocations: 42.69 kB / 374.2 MB, free: 23.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.655e-06/0.3144, allocations: 0 / 374.2 MB, free: 23.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002755/0.3171, allocations: 0.6944 MB / 374.9 MB, free: 23.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.3172, allocations: 209.8 kB / 375.1 MB, free: 22.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/0.3212, allocations: 2.889 MB / 378 MB, free: 22.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.3212, allocations: 27.64 kB / 378.1 MB, free: 22.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005616/0.3218, allocations: 0.7866 MB / 378.8 MB, free: 21.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.3218, allocations: 79.48 kB / 378.9 MB, free: 21.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.322, allocations: 68.53 kB / 379 MB, free: 21.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.322, allocations: 321 kB / 379.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.3224, allocations: 121.4 kB / 379.4 MB, free: 20.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.3228, allocations: 296.4 kB / 379.7 MB, free: 20.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.3235, allocations: 361.4 kB / 380.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3235, allocations: 1.969 kB / 380.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0013/0.3248, allocations: 0.5494 MB / 380.6 MB, free: 20.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3248, allocations: 6.656 kB / 380.6 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.3248, allocations: 3.812 kB / 380.6 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.3251, allocations: 66.83 kB / 380.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3254, allocations: 74.98 kB / 380.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.3268, allocations: 1.724 MB / 382.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/0.3274, allocations: 66.33 kB / 382.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.3274, allocations: 12.88 kB / 382.6 MB, free: 18.59 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.0008005/0.3282, allocations: 0.5782 MB / 383.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3284, allocations: 160.7 kB / 383.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.3296, allocations: 0.5106 MB / 383.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3296, allocations: 6.25 kB / 383.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3296, allocations: 1.672 kB / 383.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.3296, allocations: 0.6562 kB / 383.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.3326, allocations: 1.681 MB / 385.5 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3326, allocations: 6.125 kB / 385.5 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.3328, allocations: 49.73 kB / 385.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.333, allocations: 49.72 kB / 385.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.333, allocations: 5.938 kB / 385.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.3342, allocations: 1.67 MB / 387.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3342, allocations: 0 / 387.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.3357, allocations: 0.7204 MB / 388 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008878/0.3366, allocations: 376.3 kB / 388.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.3368, allocations: 7.656 kB / 388.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006038/0.3374, allocations: 45.39 kB / 388.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.3376, allocations: 35.11 kB / 388.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.3376, allocations: 14.12 kB / 388.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00365/0.3413, allocations: 2.062 MB / 390.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3413, allocations: 0 / 390.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009069/0.3422, allocations: 203 kB / 390.7 MB, free: 14.24 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.0008897/0.3431, allocations: 374.2 kB / 391.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3442, allocations: 429.8 kB / 391.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.3442, allocations: 1.094 kB / 391.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004873/0.3447, allocations: 273.4 kB / 391.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009852/0.3457, allocations: 223.6 kB / 392 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004747/0.3504, allocations: 3.059 MB / 395.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008522/0.3513, allocations: 1.357 MB / 396.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005311/0.3519, allocations: 229.7 kB / 396.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.3521, allocations: 83.42 kB / 396.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.846e-06/0.3521, allocations: 0 / 396.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of Templates: time 0.02602/0.3781, allocations: 15.54 MB / 412.3 MB, free: 11.2 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 -s gbode -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