Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 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.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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 114.4 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 208 kB / 19.41 MB, free: 3.645 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.447/1.447, allocations: 227.7 MB / 247.9 MB, free: 10.2 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.001882/0.001882, allocations: 63.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2359, allocations: 50.54 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007574/0.2435, allocations: 5.866 MB / 416.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004614/0.2481, allocations: 2.75 MB / 418.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005447/0.2486, allocations: 19.94 kB / 418.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.2503, allocations: 0.7661 MB / 419.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.2514, allocations: 0.5594 MB / 420.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.2525, allocations: 0.5062 MB / 420.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.2544, allocations: 1.593 MB / 422.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006509/0.2551, allocations: 438.6 kB / 422.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007362/0.2558, allocations: 0.6189 MB / 423.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008168/0.2567, allocations: 0.7355 MB / 424 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.2568, allocations: 135.9 kB / 424.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003656/0.2572, allocations: 208 kB / 424.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005802/0.2578, allocations: 0.6543 MB / 425 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008305/0.2586, allocations: 0.9205 MB / 425.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002491/0.2611, allocations: 2.501 MB / 428.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2611, allocations: 4 kB / 428.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2611, allocations: 0 / 428.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.2611, allocations: 0 / 428.5 MB, free: 15.11 MB / 350.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.005197/0.2663, allocations: 2.66 MB / 431.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.2664, allocations: 8.031 kB / 431.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003813/0.2668, allocations: 235.4 kB / 431.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002545/0.2693, allocations: 1.572 MB / 432.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.2694, allocations: 92.27 kB / 433 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.2696, allocations: 87.94 kB / 433.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.2715, allocations: 1.108 MB / 434.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.2715, allocations: 4 kB / 434.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.266e-05/0.2716, allocations: 40 kB / 434.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.2716, allocations: 20 kB / 434.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.2731, allocations: 0.7182 MB / 435 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007441/0.2805, allocations: 4.6 MB / 439.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.282, allocations: 0.8979 MB / 440.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007744/0.2828, allocations: 353.2 kB / 440.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.853e-05/0.2828, allocations: 7.984 kB / 440.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.2828, allocations: 50.5 kB / 440.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.2828, allocations: 0 / 440.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001865/0.2847, allocations: 0.8288 MB / 441.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002522/0.285, allocations: 427.2 kB / 442.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003873/0.2888, allocations: 2.76 MB / 444.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.289, allocations: 37.7 kB / 444.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008621/0.2898, allocations: 0.8991 MB / 445.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.29, allocations: 162.6 kB / 446 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.2902, allocations: 126.3 kB / 446.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2904, allocations: 330 kB / 446.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/0.2909, allocations: 257.1 kB / 446.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007959/0.2917, allocations: 0.5324 MB / 447.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.2928, allocations: 0.621 MB / 447.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.2928, allocations: 0 / 447.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001814/0.2947, allocations: 0.8619 MB / 448.7 MB, free: 9.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.2947, allocations: 8 kB / 448.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.2947, allocations: 4 kB / 448.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.2947, allocations: 8 kB / 448.7 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.2953, allocations: 164 kB / 448.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.2954, allocations: 11.94 kB / 448.9 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.2964, allocations: 163.4 kB / 449 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.876e-05/0.2965, allocations: 27.98 kB / 449.1 MB, free: 9.609 MB / 366.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.0008611/0.2974, allocations: 0.556 MB / 449.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/0.2976, allocations: 190.8 kB / 449.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.2991, allocations: 0.6963 MB / 450.5 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.2991, allocations: 4 kB / 450.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.2991, allocations: 3.938 kB / 450.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2991, allocations: 7.984 kB / 450.5 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.3027, allocations: 2.129 MB / 452.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3027, allocations: 0 / 452.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005193/0.3033, allocations: 107.9 kB / 452.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.3033, allocations: 4 kB / 452.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.3033, allocations: 8 kB / 452.8 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.3033, allocations: 4 kB / 452.8 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3033, allocations: 8.031 kB / 452.8 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.3053, allocations: 1.056 MB / 453.8 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008285/0.3061, allocations: 419.7 kB / 454.3 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/0.3063, allocations: 19.98 kB / 454.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.3073, allocations: 139.8 kB / 454.4 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.3077, allocations: 155.7 kB / 454.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.3077, allocations: 23.94 kB / 454.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002939/0.3106, allocations: 1.96 MB / 456.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3106, allocations: 0 / 456.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009565/0.3116, allocations: 315.4 kB / 456.9 MB, free: 1.672 MB / 366.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.00178/0.3134, allocations: 486 kB / 457.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3146, allocations: 0.5732 MB / 457.9 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.3147, allocations: 4 kB / 457.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006635/0.3153, allocations: 327.6 kB / 458.2 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.3167, allocations: 330.6 kB / 458.5 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006006/0.3227, allocations: 3.551 MB / 462.1 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.3239, allocations: 1.437 MB / 463.5 MB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008055/0.3247, allocations: 287.1 kB / 463.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.3251, allocations: 103.4 kB / 463.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3251, allocations: 0 / 463.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of Templates: time 0.03839/0.3634, allocations: 21.47 MB / 485.4 MB, free: 5.41 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches