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.001061/0.001062, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2696, allocations: 50.54 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006446/0.2761, allocations: 5.843 MB / 415.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003998/0.2801, allocations: 2.746 MB / 417.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004939/0.2806, allocations: 23.88 kB / 417.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.2821, allocations: 0.766 MB / 418.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009833/0.2831, allocations: 0.5516 MB / 419.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.2842, allocations: 0.5066 MB / 419.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.2858, allocations: 1.601 MB / 421.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007297/0.2866, allocations: 0.6 MB / 421.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006421/0.2872, allocations: 0.6073 MB / 422.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008086/0.288, allocations: 0.7393 MB / 423.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000182/0.2882, allocations: 136 kB / 423.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003621/0.2886, allocations: 212 kB / 423.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004769/0.2891, allocations: 0.6465 MB / 424.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007967/0.2899, allocations: 0.9205 MB / 425.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.2921, allocations: 2.502 MB / 427.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2921, allocations: 0 / 427.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2921, allocations: 4 kB / 427.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.947e-05/0.2922, allocations: 0 / 427.6 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.004989/0.2972, allocations: 2.663 MB / 430.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.2972, allocations: 8.031 kB / 430.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003577/0.2976, allocations: 235.4 kB / 430.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.3, allocations: 1.568 MB / 432.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.3002, allocations: 92.27 kB / 432.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.3003, allocations: 87.94 kB / 432.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.3022, allocations: 1.104 MB / 433.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.3023, allocations: 0 / 433.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-05/0.3024, allocations: 40 kB / 433.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.3024, allocations: 20 kB / 433.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.304, allocations: 0.7221 MB / 434.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007749/0.3118, allocations: 4.608 MB / 438.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.3131, allocations: 0.9298 MB / 439.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007357/0.3139, allocations: 390 kB / 440.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.223e-05/0.3139, allocations: 8 kB / 440.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.314, allocations: 42.55 kB / 440.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.056e-06/0.314, allocations: 0 / 440.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002117/0.3161, allocations: 0.821 MB / 440.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003178/0.3165, allocations: 427.2 kB / 441.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003737/0.3202, allocations: 2.764 MB / 444.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.361e-05/0.3203, allocations: 37.7 kB / 444.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007273/0.321, allocations: 0.8991 MB / 445.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3212, allocations: 170.6 kB / 445.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.3214, allocations: 122.2 kB / 445.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3216, allocations: 333.9 kB / 445.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.3221, allocations: 261.1 kB / 445.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/0.3229, allocations: 0.5324 MB / 446.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3239, allocations: 0.6133 MB / 447.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3239, allocations: 0 / 447.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001652/0.3256, allocations: 0.862 MB / 447.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.3256, allocations: 8 kB / 447.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.3256, allocations: 4 kB / 448 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.3256, allocations: 12 kB / 448 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005692/0.3262, allocations: 156 kB / 448.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/0.3262, allocations: 23.88 kB / 448.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009741/0.3272, allocations: 155.4 kB / 448.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.3273, allocations: 28 kB / 448.3 MB, free: 9.539 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.0007698/0.3281, allocations: 0.5622 MB / 448.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.3283, allocations: 190.8 kB / 449.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.3298, allocations: 0.6963 MB / 449.8 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.3298, allocations: 4 kB / 449.8 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3298, allocations: 7.938 kB / 449.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3298, allocations: 0 / 449.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.3329, allocations: 2.125 MB / 451.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3329, allocations: 4.094 kB / 451.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.3334, allocations: 111.9 kB / 452 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3334, allocations: 4 kB / 452 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.3335, allocations: 12 kB / 452 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.3335, allocations: 7.938 kB / 452 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3335, allocations: 0 / 452 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.3352, allocations: 1.056 MB / 453.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005745/0.3358, allocations: 419.7 kB / 453.5 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.3359, allocations: 12 kB / 453.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009769/0.3369, allocations: 139.8 kB / 453.7 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/0.3372, allocations: 159.7 kB / 453.8 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.251e-05/0.3373, allocations: 23.92 kB / 453.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002541/0.3398, allocations: 1.964 MB / 455.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3398, allocations: 0 / 455.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009425/0.3408, allocations: 315.4 kB / 456.1 MB, free: 1.602 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.001104/0.3419, allocations: 473.5 kB / 456.6 MB, free: 1.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.3431, allocations: 0.5927 MB / 457.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3431, allocations: 0 / 457.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006323/0.3438, allocations: 348 kB / 457.5 MB, free: 364 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.3451, allocations: 324.3 kB / 457.8 MB, free: 40 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.3501, allocations: 3.544 MB / 461.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.3511, allocations: 1.441 MB / 462.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006874/0.3518, allocations: 295.1 kB / 463.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.3522, allocations: 103.4 kB / 463.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3522, allocations: 0 / 463.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of Templates: time 0.03553/0.3877, allocations: 21.41 MB / 484.6 MB, free: 5.328 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches