Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 114.3 kB / 17.75 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 189.3 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009802/0.0009802, allocations: 47.94 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2299, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006617/0.2366, allocations: 5.802 MB / 407.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003521/0.2401, allocations: 2.583 MB / 409.8 MB, free: 476 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003842/0.2405, allocations: 19.94 kB / 409.8 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.2419, allocations: 0.7661 MB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000789/0.2427, allocations: 0.5205 MB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009346/0.2437, allocations: 0.5088 MB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.2451, allocations: 1.59 MB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006816/0.2458, allocations: 0.5883 MB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005621/0.2464, allocations: 0.6151 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006978/0.2471, allocations: 0.7393 MB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.2472, allocations: 132 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.2476, allocations: 216 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004664/0.2481, allocations: 0.6387 MB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006891/0.2488, allocations: 0.9166 MB / 417 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.2506, allocations: 2.472 MB / 419.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2506, allocations: 3.938 kB / 419.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2506, allocations: 0 / 419.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.2507, allocations: 0 / 419.5 MB, free: 6.688 MB / 334.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.004344/0.255, allocations: 2.571 MB / 422.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.255, allocations: 8.031 kB / 422.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002903/0.2553, allocations: 222.2 kB / 422.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.2576, allocations: 1.539 MB / 423.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.374e-05/0.2577, allocations: 100.3 kB / 423.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.2578, allocations: 95.77 kB / 424 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002687/0.2605, allocations: 1.1 MB / 425.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.2605, allocations: 0 / 425.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.2607, allocations: 43.98 kB / 425.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.155e-05/0.2607, allocations: 20 kB / 425.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00208/0.2628, allocations: 0.7143 MB / 425.9 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009705/0.2725, allocations: 4.591 MB / 430.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.2746, allocations: 0.9429 MB / 431.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.2758, allocations: 390 kB / 431.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.344e-05/0.2758, allocations: 4 kB / 431.8 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.2759, allocations: 50.56 kB / 431.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.015e-06/0.2759, allocations: 0 / 431.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002779/0.2787, allocations: 0.8122 MB / 432.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002466/0.279, allocations: 423.2 kB / 433.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005383/0.2844, allocations: 2.746 MB / 435.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.226e-05/0.2845, allocations: 37.7 kB / 435.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.2856, allocations: 0.8784 MB / 436.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.2858, allocations: 157.8 kB / 436.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000319/0.2861, allocations: 130.2 kB / 437 MB, free: 4.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2862, allocations: 322 kB / 437.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008361/0.2871, allocations: 257.1 kB / 437.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.2882, allocations: 0.5324 MB / 438.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.2898, allocations: 0.6211 MB / 438.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.2898, allocations: 0 / 438.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002588/0.2924, allocations: 0.8571 MB / 439.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.2925, allocations: 8.094 kB / 439.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.2925, allocations: 8 kB / 439.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.2925, allocations: 8 kB / 439.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.2936, allocations: 155.8 kB / 439.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.362e-05/0.2936, allocations: 15.88 kB / 439.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.2953, allocations: 159.1 kB / 440 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.129e-05/0.2954, allocations: 31.98 kB / 440 MB, free: 1.32 MB / 350.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.001181/0.2966, allocations: 0.5521 MB / 440.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004032/0.297, allocations: 181.8 kB / 440.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.2992, allocations: 0.6922 MB / 441.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.2992, allocations: 3.984 kB / 441.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2992, allocations: 12 kB / 441.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.3004, allocations: 410.6 kB / 441.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002971/0.3007, allocations: 11.98 kB / 441.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.3023, allocations: 139.8 kB / 442 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004526/0.3028, allocations: 143.8 kB / 442.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003494/0.3063, allocations: 0.8285 MB / 443 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002742/0.309, allocations: 1.149 MB / 444.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008265/0.3099, allocations: 288.5 kB / 444.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.3127, allocations: 1.947 MB / 446.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of Backend: time 8.41e-07/0.3128, allocations: 4 kB / 446.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003851/0.3166, allocations: 1.065 MB / 447.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of SimCode: time 0.006823/0.3235, allocations: 3.856 MB / 451.3 MB, free: 6.18 MB / 366.1 MB Notification: Performance of Templates: time 0.03815/0.3616, allocations: 23.25 MB / 474.5 MB, free: 15.12 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches