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.001781/0.001781, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.1 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 66.55 kB / 307.1 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1121, allocations: 50.54 MB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00834/0.1205, allocations: 5.535 MB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.1242, allocations: 1.84 MB / 365.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005883/0.1248, allocations: 15.88 kB / 365.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.126, allocations: 0.5022 MB / 365.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009297/0.127, allocations: 338.5 kB / 365.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.1279, allocations: 347.2 kB / 366.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.129, allocations: 0.8964 MB / 367.1 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005376/0.1296, allocations: 328.8 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.1301, allocations: 370.7 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005206/0.1306, allocations: 446.4 kB / 368.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.1307, allocations: 80 kB / 368.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.131, allocations: 120 kB / 368.5 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004992/0.1315, allocations: 0.5921 MB / 369 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006648/0.1322, allocations: 0.7454 MB / 369.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.1339, allocations: 1.781 MB / 371.6 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1339, allocations: 0 / 371.6 MB, free: 216 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.134, allocations: 0 / 371.6 MB, free: 216 kB / 302.1 MB Notification: Performance of Transformations before backend: time 3.625e-05/0.134, allocations: 0 / 371.6 MB, free: 216 kB / 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.1598/0.2938, allocations: 2.086 MB / 373.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.2938, allocations: 8.625 kB / 373.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.2941, allocations: 186.4 kB / 373.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.2962, allocations: 1.489 MB / 375.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.2964, allocations: 95.3 kB / 375.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-05/0.2965, allocations: 48.27 kB / 375.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.2976, allocations: 0.5831 MB / 376.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.2976, allocations: 3.938 kB / 376.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.2976, allocations: 22.78 kB / 376.1 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.2977, allocations: 12.62 kB / 376.1 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006618/0.2983, allocations: 346.2 kB / 376.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004223/0.3026, allocations: 3.256 MB / 379.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3037, allocations: 385.6 kB / 380.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.3041, allocations: 182.4 kB / 380.2 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.3042, allocations: 10.84 kB / 380.3 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.3042, allocations: 33.83 kB / 380.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.3042, allocations: 4 kB / 380.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001925/0.3062, allocations: 0.6948 MB / 381 MB, free: 15.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.3062, allocations: 214.4 kB / 381.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003628/0.3099, allocations: 2.902 MB / 384.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.3099, allocations: 31.92 kB / 384.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005343/0.3104, allocations: 0.7868 MB / 384.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.407e-05/0.3105, allocations: 75.09 kB / 385 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.3106, allocations: 70.58 kB / 385.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.617e-05/0.3107, allocations: 317.1 kB / 385.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.311, allocations: 122.5 kB / 385.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.3114, allocations: 288.2 kB / 385.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006069/0.312, allocations: 365.6 kB / 386.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.312, allocations: 1.812 kB / 386.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001212/0.3133, allocations: 0.556 MB / 386.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3133, allocations: 7.344 kB / 386.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3133, allocations: 4.188 kB / 386.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.3136, allocations: 62.23 kB / 386.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.3139, allocations: 79.52 kB / 386.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.3151, allocations: 1.715 MB / 388.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005936/0.3157, allocations: 74.17 kB / 388.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.3158, allocations: 12.33 kB / 388.6 MB, free: 10.91 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.0006882/0.3165, allocations: 0.5763 MB / 389.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.3167, allocations: 161.6 kB / 389.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.3178, allocations: 0.5232 MB / 389.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3178, allocations: 3.047 kB / 389.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3178, allocations: 1.281 kB / 389.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3179, allocations: 1.312 kB / 389.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.3205, allocations: 1.7 MB / 391.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3205, allocations: 1.312 kB / 391.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.3207, allocations: 49.28 kB / 391.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.3209, allocations: 48.14 kB / 391.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3209, allocations: 10.39 kB / 391.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.3219, allocations: 1.657 MB / 393.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3219, allocations: 4.781 kB / 393.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.3234, allocations: 0.7164 MB / 394.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005593/0.3239, allocations: 388.1 kB / 394.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.3241, allocations: 9.812 kB / 394.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.3245, allocations: 38.08 kB / 394.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.3246, allocations: 33.7 kB / 394.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.3247, allocations: 8.125 kB / 394.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002541/0.3272, allocations: 2.073 MB / 396.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3272, allocations: 0 / 396.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008721/0.3281, allocations: 210.1 kB / 396.8 MB, free: 6.035 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.001217/0.3293, allocations: 363.8 kB / 397.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009829/0.3303, allocations: 444.4 kB / 397.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3303, allocations: 0 / 397.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004625/0.3308, allocations: 277.3 kB / 397.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.332, allocations: 220.1 kB / 398.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/0.3367, allocations: 3.561 MB / 401.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.3375, allocations: 1.355 MB / 403 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.3377, allocations: 83.44 kB / 403.1 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3377, allocations: 3.938 kB / 403.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of Templates: time 0.03648/0.3742, allocations: 24.76 MB / 427.9 MB, free: 7.855 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/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches