Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002026, allocations: 64.36 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1103, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007819/0.1182, allocations: 5.538 MB / 364 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003578/0.1218, allocations: 1.882 MB / 365.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.1222, allocations: 11.94 kB / 365.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.1235, allocations: 0.5213 MB / 366.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009332/0.1244, allocations: 389.9 kB / 366.8 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009101/0.1254, allocations: 373.9 kB / 367.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.1265, allocations: 0.9004 MB / 368 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005533/0.1271, allocations: 336.8 kB / 368.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.1275, allocations: 362.7 kB / 368.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005474/0.1281, allocations: 442.4 kB / 369.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1282, allocations: 80 kB / 369.2 MB, free: 3.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.1285, allocations: 120 kB / 369.3 MB, free: 3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005154/0.129, allocations: 0.5882 MB / 369.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007/0.1297, allocations: 0.7377 MB / 370.7 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1658/0.2955, allocations: 2.097 MB / 372.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.2955, allocations: 0.75 kB / 372.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2955, allocations: 0.6875 kB / 372.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.543e-05/0.2956, allocations: 3.375 kB / 372.8 MB, free: 13.26 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.003335/0.2989, allocations: 2.076 MB / 374.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.299, allocations: 9.625 kB / 374.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.2993, allocations: 189.7 kB / 375 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/0.3015, allocations: 1.489 MB / 376.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.3017, allocations: 95.42 kB / 376.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.337e-05/0.3018, allocations: 48.53 kB / 376.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009981/0.3028, allocations: 0.5849 MB / 377.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3029, allocations: 0.5938 kB / 377.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.3029, allocations: 22.5 kB / 377.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.3029, allocations: 16.38 kB / 377.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006697/0.3036, allocations: 349.5 kB / 377.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00449/0.3081, allocations: 3.25 MB / 380.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.3092, allocations: 390.7 kB / 381.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.3097, allocations: 182.7 kB / 381.4 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3097, allocations: 2.969 kB / 381.4 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.3098, allocations: 38.64 kB / 381.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.964e-06/0.3098, allocations: 4 kB / 381.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00185/0.3116, allocations: 0.6933 MB / 382.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.3117, allocations: 214.4 kB / 382.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003898/0.3156, allocations: 2.895 MB / 385.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.3157, allocations: 31.95 kB / 385.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006171/0.3163, allocations: 0.7955 MB / 386.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/0.3163, allocations: 70.73 kB / 386.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.3165, allocations: 66.36 kB / 386.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.3165, allocations: 321.1 kB / 386.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.3169, allocations: 118.1 kB / 386.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.3173, allocations: 294.7 kB / 387 MB, free: 7.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/0.318, allocations: 364.5 kB / 387.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.318, allocations: 0.8125 kB / 387.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001351/0.3193, allocations: 0.5625 MB / 387.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3194, allocations: 7.453 kB / 387.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3194, allocations: 6.656 kB / 387.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.3197, allocations: 62.59 kB / 387.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.3201, allocations: 76.25 kB / 388 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.3219, allocations: 1.729 MB / 389.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008842/0.3229, allocations: 65.61 kB / 389.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.3229, allocations: 15.94 kB / 389.8 MB, free: 4.98 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.0008221/0.3237, allocations: 0.574 MB / 390.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.324, allocations: 165.8 kB / 390.6 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.3252, allocations: 0.5159 MB / 391.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3253, allocations: 3.281 kB / 391.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.3253, allocations: 0 / 391.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.3253, allocations: 0 / 391.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.3281, allocations: 1.7 MB / 392.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3281, allocations: 1.188 kB / 392.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.3284, allocations: 50.55 kB / 392.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001704/0.3285, allocations: 50.81 kB / 392.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.3286, allocations: 5.344 kB / 392.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.3298, allocations: 1.674 MB / 394.6 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3298, allocations: 0 / 394.6 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.3313, allocations: 0.7095 MB / 395.3 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007108/0.3321, allocations: 383.8 kB / 395.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.3322, allocations: 8.453 kB / 395.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3327, allocations: 41.78 kB / 395.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.465e-05/0.3328, allocations: 31.81 kB / 395.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.3328, allocations: 9.531 kB / 395.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002998/0.3358, allocations: 2.073 MB / 397.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.002e-06/0.3358, allocations: 5.688 kB / 397.8 MB, free: 0.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009106/0.3368, allocations: 198.7 kB / 398 MB, free: 484 kB / 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.001293/0.3381, allocations: 361.9 kB / 398.4 MB, free: 316 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3391, allocations: 445.6 kB / 398.8 MB, free: 68 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.3391, allocations: 5.5 kB / 398.8 MB, free: 68 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005285/0.3397, allocations: 268.4 kB / 399.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.3411, allocations: 228.2 kB / 399.3 MB, free: 15.76 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.3467, allocations: 3.17 MB / 402.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.3479, allocations: 1.355 MB / 403.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003364/0.3483, allocations: 83.42 kB / 403.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3483, allocations: 0 / 403.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of Templates: time 0.04129/0.3896, allocations: 24.78 MB / 428.7 MB, free: 3.23 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches