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.001314/0.001314, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.00146/0.00146, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.327/1.327, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 43.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.238, allocations: 49.43 MB / 401.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006705/0.2447, allocations: 5.801 MB / 407.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004256/0.249, allocations: 2.579 MB / 409.8 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007929/0.2498, allocations: 27.88 kB / 409.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001814/0.2517, allocations: 0.7621 MB / 410.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.253, allocations: 0.5088 MB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2543, allocations: 0.5139 MB / 411.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00209/0.2564, allocations: 1.586 MB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008906/0.2573, allocations: 0.5961 MB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008492/0.2581, allocations: 0.6151 MB / 414.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.2592, allocations: 0.7393 MB / 415.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.2594, allocations: 132 kB / 415.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004713/0.2599, allocations: 208 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005586/0.2605, allocations: 0.6465 MB / 416.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009751/0.2615, allocations: 0.9127 MB / 417 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002106/0.2636, allocations: 2.48 MB / 419.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2636, allocations: 0 / 419.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2636, allocations: 0 / 419.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.2636, allocations: 3.938 kB / 419.5 MB, free: 6.84 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.004496/0.2681, allocations: 2.563 MB / 422.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2682, allocations: 8.031 kB / 422.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.2685, allocations: 222.2 kB / 422.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.2707, allocations: 1.539 MB / 423.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.2708, allocations: 104.3 kB / 423.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.2709, allocations: 87.84 kB / 424 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.2727, allocations: 1.104 MB / 425.1 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2727, allocations: 0 / 425.1 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.782e-05/0.2728, allocations: 40 kB / 425.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.2728, allocations: 20 kB / 425.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.2741, allocations: 0.7182 MB / 425.9 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00625/0.2804, allocations: 4.587 MB / 430.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.2817, allocations: 0.9387 MB / 431.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007592/0.2825, allocations: 386 kB / 431.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.904e-05/0.2825, allocations: 7.938 kB / 431.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.2826, allocations: 58.48 kB / 431.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.2826, allocations: 0 / 431.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001847/0.2845, allocations: 0.8122 MB / 432.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002355/0.2847, allocations: 427.2 kB / 433.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.2883, allocations: 2.735 MB / 435.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.449e-05/0.2883, allocations: 37.7 kB / 435.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006964/0.289, allocations: 0.8745 MB / 436.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2892, allocations: 161.7 kB / 436.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.2894, allocations: 126.2 kB / 437 MB, free: 4.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2895, allocations: 326 kB / 437.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005386/0.2901, allocations: 261.1 kB / 437.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007211/0.2908, allocations: 0.5363 MB / 438.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.2918, allocations: 0.6133 MB / 438.7 MB, free: 2.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2918, allocations: 4 kB / 438.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00165/0.2935, allocations: 0.8489 MB / 439.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2935, allocations: 4.625 kB / 439.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.2935, allocations: 12 kB / 439.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.2936, allocations: 8 kB / 439.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.2942, allocations: 159.7 kB / 439.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.2942, allocations: 11.94 kB / 439.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.2953, allocations: 159.1 kB / 439.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/0.2953, allocations: 28 kB / 440 MB, free: 1.496 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.0007592/0.2961, allocations: 0.5677 MB / 440.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.2964, allocations: 177.8 kB / 440.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.2977, allocations: 0.6923 MB / 441.4 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.2978, allocations: 8 kB / 441.4 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.2978, allocations: 7.875 kB / 441.4 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2978, allocations: 7.938 kB / 441.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.3009, allocations: 2.109 MB / 443.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3009, allocations: 4 kB / 443.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004994/0.3014, allocations: 107.9 kB / 443.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.3014, allocations: 12.03 kB / 443.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.771e-05/0.3015, allocations: 8 kB / 443.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.3015, allocations: 3.984 kB / 443.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3015, allocations: 7.938 kB / 443.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.3032, allocations: 1.039 MB / 444.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005875/0.3038, allocations: 406.7 kB / 445.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.304, allocations: 19.98 kB / 445.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.3051, allocations: 135.8 kB / 445.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.3054, allocations: 155.7 kB / 445.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.3055, allocations: 19.94 kB / 445.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002485/0.308, allocations: 1.943 MB / 447.4 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.308, allocations: 4 kB / 447.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008898/0.3089, allocations: 319.2 kB / 447.7 MB, free: 9.605 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.001248/0.3101, allocations: 493.9 kB / 448.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3114, allocations: 0.5843 MB / 448.8 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3115, allocations: 0 / 448.8 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006361/0.3121, allocations: 348.7 kB / 449.1 MB, free: 8.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.3135, allocations: 321.8 kB / 449.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005314/0.3188, allocations: 3.537 MB / 452.9 MB, free: 4.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.3198, allocations: 1.425 MB / 454.4 MB, free: 3.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.3203, allocations: 115.4 kB / 454.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of SimCode: time 5e-07/0.3203, allocations: 0 / 454.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of Templates: time 0.03273/0.353, allocations: 23.08 MB / 477.6 MB, free: 11.91 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