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.001268/0.001269, allocations: 108.3 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.00107/0.00107, allocations: 191 kB / 18.67 MB, free: 4.434 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.349/1.349, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2705, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006952/0.2775, allocations: 5.79 MB / 407.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004076/0.2816, allocations: 2.583 MB / 409.8 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004244/0.282, allocations: 23.88 kB / 409.8 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.2836, allocations: 0.7622 MB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008445/0.2845, allocations: 0.5088 MB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.2855, allocations: 0.512 MB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001577/0.2871, allocations: 1.59 MB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007287/0.2878, allocations: 0.5961 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006477/0.2885, allocations: 0.6073 MB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007938/0.2893, allocations: 0.7354 MB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.2895, allocations: 132 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003724/0.2898, allocations: 211.9 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005051/0.2903, allocations: 0.6388 MB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007101/0.2911, allocations: 0.9204 MB / 417 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002054/0.2931, allocations: 2.48 MB / 419.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2931, allocations: 4 kB / 419.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2932, allocations: 0 / 419.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.577e-05/0.2932, allocations: 0 / 419.5 MB, free: 6.707 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.004407/0.2976, allocations: 2.57 MB / 422 MB, free: 4.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.2977, allocations: 8.031 kB / 422.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003387/0.298, allocations: 222.2 kB / 422.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.3001, allocations: 1.535 MB / 423.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.3002, allocations: 92.27 kB / 423.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3004, allocations: 95.78 kB / 424 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.3021, allocations: 1.104 MB / 425.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3021, allocations: 0 / 425.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/0.3022, allocations: 40 kB / 425.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.3022, allocations: 24 kB / 425.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3034, allocations: 0.7182 MB / 425.9 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005883/0.3093, allocations: 4.594 MB / 430.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3106, allocations: 0.9388 MB / 431.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007138/0.3113, allocations: 386 kB / 431.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.3114, allocations: 11.98 kB / 431.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.3114, allocations: 42.55 kB / 431.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.014e-06/0.3114, allocations: 0 / 431.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001602/0.313, allocations: 0.8199 MB / 432.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001976/0.3132, allocations: 431.2 kB / 433.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003171/0.3164, allocations: 2.743 MB / 435.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.3165, allocations: 37.7 kB / 435.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006749/0.3171, allocations: 0.8706 MB / 436.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.3173, allocations: 161.7 kB / 436.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.3175, allocations: 118.2 kB / 437 MB, free: 4.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3176, allocations: 334 kB / 437.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.3181, allocations: 257.1 kB / 437.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000684/0.3188, allocations: 0.5324 MB / 438.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009558/0.3198, allocations: 0.6133 MB / 438.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3198, allocations: 7.938 kB / 438.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001441/0.3212, allocations: 0.8492 MB / 439.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3213, allocations: 8 kB / 439.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3213, allocations: 4 kB / 439.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.3213, allocations: 12 kB / 439.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005634/0.3219, allocations: 164 kB / 439.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.992e-05/0.3219, allocations: 23.86 kB / 439.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009118/0.3228, allocations: 159.1 kB / 439.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.3229, allocations: 27.98 kB / 440 MB, free: 1.34 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.0006928/0.3236, allocations: 0.556 MB / 440.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.3238, allocations: 177.8 kB / 440.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.3251, allocations: 0.6922 MB / 441.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3251, allocations: 4 kB / 441.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3251, allocations: 3.938 kB / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3252, allocations: 3.984 kB / 441.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002963/0.3281, allocations: 2.125 MB / 443.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3282, allocations: 0 / 443.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.3286, allocations: 103.9 kB / 443.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.3286, allocations: 4 kB / 443.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.3287, allocations: 19.92 kB / 443.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.3287, allocations: 4 kB / 443.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3287, allocations: 0 / 443.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.3304, allocations: 1.043 MB / 444.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/0.3309, allocations: 414.6 kB / 445.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.3311, allocations: 12 kB / 445.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009525/0.3321, allocations: 139.8 kB / 445.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.3324, allocations: 151.8 kB / 445.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.3324, allocations: 19.94 kB / 445.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.3348, allocations: 1.951 MB / 447.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3348, allocations: 0 / 447.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007887/0.3356, allocations: 311.3 kB / 447.7 MB, free: 9.469 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.001045/0.3367, allocations: 477.7 kB / 448.1 MB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.3378, allocations: 0.5929 MB / 448.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3378, allocations: 4.062 kB / 448.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005798/0.3384, allocations: 339.7 kB / 449.1 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.3396, allocations: 338.9 kB / 449.4 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.3445, allocations: 3.545 MB / 453 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009995/0.3456, allocations: 1.425 MB / 454.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.3459, allocations: 107.4 kB / 454.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3459, allocations: 0 / 454.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of Templates: time 0.03352/0.3794, allocations: 23.33 MB / 477.8 MB, free: 11.52 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