Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001268, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.443/1.443, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.42 kB / 307.9 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09822, allocations: 50.55 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008051/0.1063, allocations: 5.842 MB / 364.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005025/0.1114, allocations: 2.735 MB / 367 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006168/0.112, allocations: 23.94 kB / 367 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001703/0.1138, allocations: 0.7738 MB / 367.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.115, allocations: 0.5477 MB / 368.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.1163, allocations: 0.5179 MB / 368.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001892/0.1182, allocations: 1.597 MB / 370.5 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008591/0.1191, allocations: 0.5961 MB / 371.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007531/0.1198, allocations: 0.6073 MB / 371.7 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1553/0.2751, allocations: 0.7386 MB / 372.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004779/0.2756, allocations: 133.1 kB / 372.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005932/0.2762, allocations: 211.6 kB / 372.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006328/0.2769, allocations: 0.6358 MB / 373.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009674/0.2778, allocations: 0.9229 MB / 374.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002821/0.2807, allocations: 2.46 MB / 376.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2807, allocations: 1.594 kB / 376.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2807, allocations: 2 kB / 376.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.706e-05/0.2808, allocations: 0 / 376.8 MB, free: 10.48 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.005385/0.2862, allocations: 2.581 MB / 379.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2862, allocations: 10.34 kB / 379.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.2866, allocations: 222.6 kB / 379.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.289, allocations: 1.523 MB / 381.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005041/0.2895, allocations: 177.7 kB / 381.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.2896, allocations: 84.34 kB / 381.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.2915, allocations: 1.127 MB / 382.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.2915, allocations: 0.75 kB / 382.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.08e-05/0.2916, allocations: 38.81 kB / 382.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.2917, allocations: 25.38 kB / 382.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.2931, allocations: 0.739 MB / 383.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006897/0.3, allocations: 4.669 MB / 388 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.3014, allocations: 0.9781 MB / 388.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008504/0.3023, allocations: 409.8 kB / 389.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.3023, allocations: 7.531 kB / 389.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3024, allocations: 47.31 kB / 389.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/0.3024, allocations: 0 / 389.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002214/0.3046, allocations: 0.8815 MB / 390.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.848e-05/0.3047, allocations: 428.2 kB / 390.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/0.3087, allocations: 2.768 MB / 393.5 MB, free: 2.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.961e-05/0.3088, allocations: 37.83 kB / 393.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005722/0.3093, allocations: 0.8798 MB / 394.4 MB, free: 1.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.3095, allocations: 163.2 kB / 394.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.3097, allocations: 125.2 kB / 394.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.3097, allocations: 339.1 kB / 395 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006308/0.3104, allocations: 277.8 kB / 395.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007355/0.3111, allocations: 0.5513 MB / 395.8 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.3123, allocations: 0.6584 MB / 396.5 MB, free: 184 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3123, allocations: 2.875 kB / 396.5 MB, free: 184 kB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002155/0.3144, allocations: 0.8971 MB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3145, allocations: 10.66 kB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.3145, allocations: 3.531 kB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.3145, allocations: 10.25 kB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006521/0.3152, allocations: 173.8 kB / 397.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3152, allocations: 10.72 kB / 397.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.3166, allocations: 173.4 kB / 397.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.862e-05/0.3167, allocations: 32.16 kB / 397.8 MB, free: 15.62 MB / 318.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.001032/0.3177, allocations: 0.554 MB / 398.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004069/0.3181, allocations: 180.7 kB / 398.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.3198, allocations: 0.7343 MB / 399.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3198, allocations: 7.766 kB / 399.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.3198, allocations: 3.906 kB / 399.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3198, allocations: 7.938 kB / 399.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/0.3237, allocations: 2.181 MB / 401.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3237, allocations: 4.031 kB / 401.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005547/0.3242, allocations: 116.2 kB / 401.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.3243, allocations: 5.062 kB / 401.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3243, allocations: 13 kB / 401.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.3243, allocations: 7.078 kB / 401.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3243, allocations: 3.188 kB / 401.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.3266, allocations: 1.116 MB / 402.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007691/0.3274, allocations: 411.4 kB / 403.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.3277, allocations: 16 kB / 403.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.3289, allocations: 147.8 kB / 403.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.3292, allocations: 151.8 kB / 403.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.3293, allocations: 20 kB / 403.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003202/0.3325, allocations: 1.964 MB / 405.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3325, allocations: 4 kB / 405.4 MB, free: 10 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001121/0.3336, allocations: 319.2 kB / 405.7 MB, free: 9.691 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.001834/0.3354, allocations: 485.4 kB / 406.2 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.3372, allocations: 0.6784 MB / 406.9 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.3373, allocations: 4.5 kB / 406.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008283/0.3381, allocations: 375.5 kB / 407.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.3398, allocations: 317.8 kB / 407.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006541/0.3463, allocations: 3.605 MB / 411.1 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.3476, allocations: 1.429 MB / 412.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006471/0.3482, allocations: 119.4 kB / 412.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3482, allocations: 0 / 412.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of Templates: time 0.04139/0.3896, allocations: 23.1 MB / 435.8 MB, free: 11.87 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches