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.001265/0.001265, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001466, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 59.53 kB / 306.9 MB, free: 1.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09413, allocations: 50.54 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00734/0.1015, allocations: 5.826 MB / 363.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.106, allocations: 2.708 MB / 366 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008953/0.1069, allocations: 23.88 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.1088, allocations: 0.7238 MB / 366.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.1102, allocations: 0.4899 MB / 367.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1115, allocations: 466.8 kB / 367.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002009/0.1135, allocations: 1.531 MB / 369.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008715/0.1144, allocations: 0.524 MB / 369.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007983/0.1152, allocations: 0.5292 MB / 370.2 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009838/0.1162, allocations: 0.708 MB / 371 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000272/0.1165, allocations: 84 kB / 371 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004842/0.117, allocations: 148 kB / 371.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005782/0.1176, allocations: 0.5879 MB / 371.8 MB, free: 104 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1677/0.2853, allocations: 0.8598 MB / 372.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002415/0.2877, allocations: 1.996 MB / 374.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2878, allocations: 0 / 374.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2878, allocations: 0 / 374.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.595e-05/0.2878, allocations: 1.344 kB / 374.6 MB, free: 10.98 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.005755/0.2936, allocations: 2.583 MB / 377.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2936, allocations: 9.625 kB / 377.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004387/0.2941, allocations: 223.7 kB / 377.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/0.2965, allocations: 1.517 MB / 379 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005168/0.297, allocations: 174.7 kB / 379.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.2972, allocations: 83.69 kB / 379.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.2992, allocations: 1.14 MB / 380.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.2993, allocations: 4.062 kB / 380.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.341e-05/0.2994, allocations: 36.75 kB / 380.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2994, allocations: 21.16 kB / 380.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.3009, allocations: 0.7403 MB / 381.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007736/0.3087, allocations: 4.676 MB / 385.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.3102, allocations: 0.9721 MB / 386.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008695/0.3111, allocations: 410.5 kB / 387.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.135e-05/0.3112, allocations: 8.594 kB / 387.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.3112, allocations: 40.09 kB / 387.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.535e-06/0.3112, allocations: 4 kB / 387.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002399/0.3136, allocations: 0.8826 MB / 388.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.3137, allocations: 424.7 kB / 388.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004544/0.3183, allocations: 2.77 MB / 391.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.3184, allocations: 39.55 kB / 391.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006788/0.3191, allocations: 0.8866 MB / 392.2 MB, free: 2.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3192, allocations: 156.7 kB / 392.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.3195, allocations: 131.1 kB / 392.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.483e-05/0.3196, allocations: 324.5 kB / 392.8 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006778/0.3203, allocations: 282 kB / 393.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007655/0.321, allocations: 0.5546 MB / 393.7 MB, free: 1.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.3222, allocations: 0.6544 MB / 394.3 MB, free: 1.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.3222, allocations: 5.062 kB / 394.3 MB, free: 1.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002129/0.3244, allocations: 0.902 MB / 395.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3244, allocations: 6.969 kB / 395.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3244, allocations: 9.688 kB / 395.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.3244, allocations: 8.5 kB / 395.3 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006668/0.3251, allocations: 168.1 kB / 395.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.3251, allocations: 14.48 kB / 395.4 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3265, allocations: 173.5 kB / 395.6 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.34e-05/0.3265, allocations: 26.84 kB / 395.6 MB, free: 0.8242 MB / 302.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.0009887/0.3275, allocations: 0.5584 MB / 396.2 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002849/0.3278, allocations: 178 kB / 396.4 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.3294, allocations: 0.743 MB / 397.1 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3294, allocations: 6.375 kB / 397.1 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3294, allocations: 0 / 397.1 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3294, allocations: 7.922 kB / 397.1 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.3332, allocations: 2.184 MB / 399.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3332, allocations: 0 / 399.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005627/0.3338, allocations: 121.3 kB / 399.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.3338, allocations: 7.5 kB / 399.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.3339, allocations: 12.03 kB / 399.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.3339, allocations: 5.531 kB / 399.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3339, allocations: 2.594 kB / 399.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.3361, allocations: 1.112 MB / 400.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006761/0.3368, allocations: 413.8 kB / 401 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/0.337, allocations: 17.94 kB / 401 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.3381, allocations: 146.9 kB / 401.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003005/0.3384, allocations: 156.4 kB / 401.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.3385, allocations: 17.22 kB / 401.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003012/0.3415, allocations: 1.963 MB / 403.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3415, allocations: 0 / 403.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001198/0.3427, allocations: 323.1 kB / 403.6 MB, free: 11.54 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.001146/0.3439, allocations: 484.7 kB / 404 MB, free: 11.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.3456, allocations: 0.6354 MB / 404.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.3456, allocations: 0.5 kB / 404.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.3464, allocations: 370.9 kB / 405 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.3484, allocations: 307.3 kB / 405.3 MB, free: 9.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/0.3559, allocations: 4.144 MB / 409.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.3574, allocations: 1.437 MB / 410.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007112/0.3581, allocations: 107.4 kB / 411 MB, free: 4.23 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3581, allocations: 0 / 411 MB, free: 4.23 MB / 318.1 MB Notification: Performance of Templates: time 0.04085/0.399, allocations: 23.08 MB / 434.1 MB, free: 13.25 MB / 350.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/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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches