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.001519/0.001519, allocations: 117.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001931/0.001931, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 59.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2926, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007447/0.3001, allocations: 5.843 MB / 415.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005252/0.3054, allocations: 2.746 MB / 418.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008923/0.3063, allocations: 19.94 kB / 418.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.3083, allocations: 0.7635 MB / 419.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001706/0.31, allocations: 0.5555 MB / 419.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.3114, allocations: 0.4983 MB / 420.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.3136, allocations: 1.61 MB / 422 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000963/0.3146, allocations: 0.5884 MB / 422.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.3156, allocations: 0.6228 MB / 423.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.3167, allocations: 0.7393 MB / 423.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003094/0.317, allocations: 132 kB / 424 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005204/0.3175, allocations: 208 kB / 424.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006289/0.3181, allocations: 0.6504 MB / 424.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.3195, allocations: 0.9205 MB / 425.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.3223, allocations: 2.495 MB / 428.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3224, allocations: 3.938 kB / 428.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3224, allocations: 0 / 428.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.246e-05/0.3225, allocations: 0 / 428.3 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.005929/0.3284, allocations: 2.587 MB / 430.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3285, allocations: 12.03 kB / 430.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004333/0.3289, allocations: 226.2 kB / 431.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/0.3314, allocations: 1.547 MB / 432.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.3316, allocations: 96.27 kB / 432.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3317, allocations: 87.92 kB / 432.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.3335, allocations: 1.108 MB / 434 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3335, allocations: 0 / 434 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.874e-05/0.3336, allocations: 40 kB / 434 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.3337, allocations: 20 kB / 434 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.335, allocations: 0.7182 MB / 434.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006786/0.3418, allocations: 4.595 MB / 439.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.3431, allocations: 0.9375 MB / 440.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/0.3439, allocations: 382 kB / 440.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.3439, allocations: 12 kB / 440.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.344, allocations: 42.5 kB / 440.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.395e-06/0.344, allocations: 0 / 440.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001834/0.3458, allocations: 0.82 MB / 441.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001995/0.346, allocations: 423.2 kB / 441.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003974/0.35, allocations: 2.764 MB / 444.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.404e-05/0.3501, allocations: 37.7 kB / 444.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007546/0.3509, allocations: 0.8824 MB / 445.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3511, allocations: 157.7 kB / 445.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.3513, allocations: 126.1 kB / 445.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3515, allocations: 334 kB / 446.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005433/0.352, allocations: 253.2 kB / 446.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007376/0.3528, allocations: 0.5363 MB / 447 MB, free: 11.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.3538, allocations: 0.6132 MB / 447.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3538, allocations: 4 kB / 447.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001722/0.3555, allocations: 0.8494 MB / 448.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3556, allocations: 8 kB / 448.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3556, allocations: 8 kB / 448.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.3556, allocations: 8 kB / 448.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/0.3562, allocations: 159.7 kB / 448.7 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.3563, allocations: 15.92 kB / 448.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.3574, allocations: 155.4 kB / 448.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.758e-05/0.3574, allocations: 32 kB / 448.9 MB, free: 9.684 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.0007538/0.3582, allocations: 0.566 MB / 449.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.3585, allocations: 177.8 kB / 449.6 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.36, allocations: 0.7001 MB / 450.3 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.36, allocations: 4 kB / 450.3 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.36, allocations: 7.875 kB / 450.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.36, allocations: 3.984 kB / 450.3 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003425/0.3634, allocations: 2.121 MB / 452.4 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3635, allocations: 4 kB / 452.4 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004951/0.364, allocations: 108 kB / 452.5 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.364, allocations: 4 kB / 452.5 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.573e-05/0.364, allocations: 15.98 kB / 452.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.3641, allocations: 0 / 452.6 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/0.3641, allocations: 4 kB / 452.6 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.366, allocations: 1.051 MB / 453.6 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006623/0.3667, allocations: 406.7 kB / 454 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.3669, allocations: 19.98 kB / 454 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.368, allocations: 135.8 kB / 454.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.3683, allocations: 151.8 kB / 454.3 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.3684, allocations: 23.94 kB / 454.3 MB, free: 4.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002752/0.3711, allocations: 1.971 MB / 456.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3712, allocations: 0 / 456.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001038/0.3722, allocations: 307.3 kB / 456.6 MB, free: 1.773 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.001153/0.3734, allocations: 483.9 kB / 457.1 MB, free: 1.453 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3746, allocations: 0.5882 MB / 457.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.3747, allocations: 4 kB / 457.7 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006482/0.3753, allocations: 344.7 kB / 458 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.3767, allocations: 320.2 kB / 458.3 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005689/0.3824, allocations: 3.561 MB / 461.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.3836, allocations: 1.437 MB / 463.3 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.384, allocations: 107.4 kB / 463.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.384, allocations: 0 / 463.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of Templates: time 0.03493/0.4189, allocations: 23.19 MB / 486.6 MB, free: 3.91 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/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