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.0009341/0.0009341, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 247.5 MB, free: 9.512 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.000233, allocations: 4 kB / 308.4 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09275, allocations: 51.53 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005999/0.09879, allocations: 5.383 MB / 365.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004299/0.1031, allocations: 2.661 MB / 368 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007019/0.1038, allocations: 23.94 kB / 368 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1056, allocations: 0.7238 MB / 368.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.1069, allocations: 493.7 kB / 369.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.1081, allocations: 474.6 kB / 369.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.11, allocations: 1.528 MB / 371.2 MB, free: 1.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007998/0.1108, allocations: 0.5162 MB / 371.7 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007248/0.1116, allocations: 0.4901 MB / 372.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008693/0.1124, allocations: 0.6534 MB / 372.8 MB, free: 72 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001844/0.1126, allocations: 60 kB / 372.9 MB, free: 12 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1667/0.2793, allocations: 120.1 kB / 373 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.2804, allocations: 0.563 MB / 373.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001617/0.282, allocations: 0.8406 MB / 374.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00297/0.285, allocations: 1.955 MB / 376.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.285, allocations: 0.5625 kB / 376.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.285, allocations: 0.7812 kB / 376.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.861e-05/0.2851, allocations: 0 / 376.4 MB, free: 10.42 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.00554/0.2907, allocations: 2.321 MB / 378.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2907, allocations: 9.625 kB / 378.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004836/0.2912, allocations: 223.5 kB / 378.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002397/0.2936, allocations: 1.524 MB / 380.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004996/0.2942, allocations: 193.3 kB / 380.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.2943, allocations: 81.75 kB / 380.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002026/0.2963, allocations: 1.135 MB / 381.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.2964, allocations: 2.062 kB / 381.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.601e-05/0.2965, allocations: 40.59 kB / 381.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.2965, allocations: 24.91 kB / 381.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.2979, allocations: 0.7493 MB / 382.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008074/0.306, allocations: 4.721 MB / 387.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.3075, allocations: 0.9928 MB / 388.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008764/0.3084, allocations: 417.8 kB / 388.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.993e-05/0.3085, allocations: 7.484 kB / 388.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.3085, allocations: 45.56 kB / 388.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.364e-06/0.3085, allocations: 5.188 kB / 388.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002445/0.311, allocations: 0.9013 MB / 389.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.3111, allocations: 425.8 kB / 390.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005517/0.3166, allocations: 2.765 MB / 392.9 MB, free: 3.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.3168, allocations: 38.67 kB / 393 MB, free: 3.445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006845/0.3175, allocations: 0.8829 MB / 393.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.3176, allocations: 164.1 kB / 394 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.144e-05/0.3177, allocations: 56.94 kB / 394.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.669e-05/0.3178, allocations: 327.5 kB / 394.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006506/0.3184, allocations: 285.7 kB / 394.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007742/0.3192, allocations: 0.566 MB / 395.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3205, allocations: 0.6721 MB / 395.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.3205, allocations: 1.312 kB / 395.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002189/0.3227, allocations: 0.9141 MB / 396.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3227, allocations: 7.25 kB / 396.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.3227, allocations: 10.84 kB / 396.8 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.3228, allocations: 6.844 kB / 396.8 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.3234, allocations: 178.6 kB / 397 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.3234, allocations: 15.5 kB / 397 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3249, allocations: 213 kB / 397.2 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/0.3249, allocations: 33.27 kB / 397.3 MB, free: 0.5391 MB / 302.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.001077/0.326, allocations: 0.5637 MB / 397.8 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000502/0.3265, allocations: 179 kB / 398 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/0.3283, allocations: 0.757 MB / 398.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.3283, allocations: 7.469 kB / 398.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3283, allocations: 0 / 398.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3283, allocations: 3.938 kB / 398.8 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/0.3324, allocations: 2.203 MB / 401 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.3325, allocations: 6.969 kB / 401 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.333, allocations: 119.9 kB / 401.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.333, allocations: 3.469 kB / 401.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.333, allocations: 11.2 kB / 401.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.333, allocations: 3.188 kB / 401.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3331, allocations: 2.719 kB / 401.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3352, allocations: 1.144 MB / 402.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007937/0.3361, allocations: 423.1 kB / 402.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.3364, allocations: 12 kB / 402.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.3378, allocations: 203.7 kB / 402.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.3381, allocations: 151.7 kB / 403 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/0.3382, allocations: 20 kB / 403.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003377/0.3416, allocations: 1.964 MB / 405 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3416, allocations: 0 / 405 MB, free: 10.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001136/0.3427, allocations: 315.2 kB / 405.3 MB, free: 10.62 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.001129/0.3439, allocations: 475.7 kB / 405.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.3454, allocations: 0.6505 MB / 406.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.3454, allocations: 0.5 kB / 406.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.3461, allocations: 383.8 kB / 406.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.348, allocations: 299.2 kB / 407.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006545/0.3545, allocations: 4.276 MB / 411.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.3557, allocations: 1.429 MB / 412.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/0.3563, allocations: 107.4 kB / 412.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3563, allocations: 8 kB / 412.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of Templates: time 0.03396/0.3902, allocations: 22.83 MB / 435.8 MB, free: 12.43 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 -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