Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 115.9 kB / 18.41 MB, free: 4.559 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: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 59.61 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09594, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006665/0.1026, allocations: 5.842 MB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00463/0.1073, allocations: 2.746 MB / 367.5 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005695/0.1079, allocations: 23.94 kB / 367.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.1095, allocations: 0.7699 MB / 368.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.1106, allocations: 0.5555 MB / 368.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1117, allocations: 0.5141 MB / 369.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.1132, allocations: 1.597 MB / 371 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007198/0.114, allocations: 0.6001 MB / 371.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.1145, allocations: 0.6151 MB / 372.2 MB, free: 8 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1821/0.2966, allocations: 0.7347 MB / 372.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003753/0.297, allocations: 132.8 kB / 373 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005222/0.2976, allocations: 207.4 kB / 373.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006624/0.2982, allocations: 0.6378 MB / 373.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008783/0.2991, allocations: 0.925 MB / 374.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002791/0.3019, allocations: 2.49 MB / 377.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3019, allocations: 5.562 kB / 377.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3019, allocations: 0 / 377.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.881e-05/0.302, allocations: 2.031 kB / 377.3 MB, free: 10.91 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005409/0.3074, allocations: 2.579 MB / 379.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3075, allocations: 9.438 kB / 379.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003798/0.3079, allocations: 224.7 kB / 380.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.3106, allocations: 1.544 MB / 381.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.572e-05/0.3107, allocations: 94.83 kB / 381.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.3109, allocations: 84.84 kB / 381.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.3127, allocations: 1.107 MB / 382.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.3128, allocations: 2.875 kB / 382.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.681e-05/0.3128, allocations: 38.81 kB / 383 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.3129, allocations: 21.31 kB / 383 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.3143, allocations: 0.7228 MB / 383.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007283/0.3216, allocations: 4.597 MB / 388.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.3227, allocations: 0.9379 MB / 389.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007369/0.3235, allocations: 382.4 kB / 389.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.691e-05/0.3235, allocations: 6.531 kB / 389.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.3236, allocations: 43.77 kB / 389.7 MB, free: 4.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.554e-06/0.3236, allocations: 1 kB / 389.7 MB, free: 4.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001905/0.3255, allocations: 0.8217 MB / 390.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/0.3256, allocations: 424.9 kB / 390.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003888/0.3295, allocations: 2.771 MB / 393.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3296, allocations: 38.3 kB / 393.7 MB, free: 2.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005973/0.3302, allocations: 0.8794 MB / 394.6 MB, free: 2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3304, allocations: 156.3 kB / 394.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.3306, allocations: 124.2 kB / 394.9 MB, free: 1.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.3306, allocations: 332.5 kB / 395.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005018/0.3311, allocations: 257.7 kB / 395.4 MB, free: 1.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00069/0.3318, allocations: 0.5331 MB / 396 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009073/0.3328, allocations: 0.6197 MB / 396.6 MB, free: 452 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3328, allocations: 4.219 kB / 396.6 MB, free: 452 kB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001682/0.3345, allocations: 0.8532 MB / 397.5 MB, free: 44 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3345, allocations: 7.656 kB / 397.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3345, allocations: 7.688 kB / 397.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.3345, allocations: 7.219 kB / 397.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.3351, allocations: 163.4 kB / 397.6 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.3351, allocations: 10.72 kB / 397.6 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.3363, allocations: 165.3 kB / 397.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.063e-05/0.3363, allocations: 25.78 kB / 397.8 MB, free: 15.92 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009777/0.3373, allocations: 0.5569 MB / 398.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003077/0.3376, allocations: 178.7 kB / 398.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.339, allocations: 0.7019 MB / 399.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.339, allocations: 5.094 kB / 399.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.339, allocations: 0 / 399.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.339, allocations: 3.938 kB / 399.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003429/0.3424, allocations: 2.129 MB / 401.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3425, allocations: 4 kB / 401.4 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.3429, allocations: 107.4 kB / 401.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.343, allocations: 3.625 kB / 401.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.343, allocations: 8.969 kB / 401.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.343, allocations: 1.469 kB / 401.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.343, allocations: 8.094 kB / 401.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.3448, allocations: 1.053 MB / 402.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000888/0.3457, allocations: 410.7 kB / 403 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/0.346, allocations: 20 kB / 403 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.347, allocations: 139.8 kB / 403.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.3473, allocations: 154.2 kB / 403.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.3474, allocations: 16 kB / 403.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002871/0.3503, allocations: 1.96 MB / 405.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3503, allocations: 0 / 405.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001093/0.3514, allocations: 319.1 kB / 405.6 MB, free: 9.914 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/0.3525, allocations: 478.8 kB / 406 MB, free: 9.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.3537, allocations: 0.5959 MB / 406.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.3537, allocations: 0.5 kB / 406.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006484/0.3544, allocations: 342.1 kB / 407 MB, free: 8.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.356, allocations: 318.6 kB / 407.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007075/0.3631, allocations: 3.491 MB / 410.8 MB, free: 4.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.3648, allocations: 1.437 MB / 412.2 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001234/0.3661, allocations: 295.1 kB / 412.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006902/0.3668, allocations: 103.4 kB / 412.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3668, allocations: 0 / 412.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of Templates: time 0.04062/0.4074, allocations: 21.17 MB / 433.8 MB, free: 14.08 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches