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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 109.3 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009345/0.0009345, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2386, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005452/0.2441, allocations: 5.816 MB / 412.9 MB, free: 21.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003912/0.2481, allocations: 2.701 MB / 415.6 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000592/0.2487, allocations: 27.81 kB / 415.6 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.2501, allocations: 0.72 MB / 416.3 MB, free: 18.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000838/0.251, allocations: 0.4937 MB / 416.8 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.252, allocations: 457 kB / 417.2 MB, free: 17.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2532, allocations: 1.551 MB / 418.8 MB, free: 16.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005595/0.2537, allocations: 0.5318 MB / 419.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.2542, allocations: 0.5331 MB / 419.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000533/0.2547, allocations: 0.708 MB / 420.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.2549, allocations: 83.98 kB / 420.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003435/0.2552, allocations: 148 kB / 420.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003922/0.2556, allocations: 0.5957 MB / 421.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006287/0.2563, allocations: 0.8579 MB / 422.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.2576, allocations: 2.394 MB / 424.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2576, allocations: 0 / 424.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2576, allocations: 0 / 424.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.2576, allocations: 0 / 424.6 MB, free: 10.15 MB / 298.7 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.00403/0.2617, allocations: 2.583 MB / 427.2 MB, free: 7.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2617, allocations: 8.031 kB / 427.2 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.2619, allocations: 222.2 kB / 427.5 MB, free: 7.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/0.2638, allocations: 1.527 MB / 429 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004255/0.2642, allocations: 176.1 kB / 429.2 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.29e-05/0.2643, allocations: 87.94 kB / 429.2 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.2658, allocations: 1.124 MB / 430.4 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.2658, allocations: 0 / 430.4 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.2659, allocations: 48 kB / 430.4 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.2659, allocations: 20 kB / 430.4 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.2671, allocations: 0.7416 MB / 431.2 MB, free: 3.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00599/0.2731, allocations: 4.65 MB / 435.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.2746, allocations: 0.9914 MB / 436.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000863/0.2755, allocations: 417.7 kB / 437.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.2756, allocations: 4 kB / 437.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.018e-05/0.2757, allocations: 46.56 kB / 437.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 3.076e-06/0.2757, allocations: 0 / 437.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.002131/0.2778, allocations: 0.8863 MB / 438.2 MB, free: 12.13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.278, allocations: 423.1 kB / 438.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003542/0.2815, allocations: 2.763 MB / 441.3 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.164e-05/0.2816, allocations: 37.7 kB / 441.4 MB, free: 8.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/0.2823, allocations: 0.8785 MB / 442.2 MB, free: 7.883 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.2825, allocations: 153.8 kB / 442.4 MB, free: 7.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.2827, allocations: 134.1 kB / 442.5 MB, free: 7.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.2828, allocations: 330 kB / 442.9 MB, free: 7.266 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/0.2835, allocations: 277 kB / 443.1 MB, free: 6.996 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008063/0.2843, allocations: 0.5635 MB / 443.7 MB, free: 6.316 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.2855, allocations: 0.6523 MB / 444.3 MB, free: 5.586 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2855, allocations: 0 / 444.3 MB, free: 5.586 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001931/0.2874, allocations: 0.9 MB / 445.2 MB, free: 4.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.2875, allocations: 4 kB / 445.2 MB, free: 4.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.2875, allocations: 8 kB / 445.2 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.2875, allocations: 8 kB / 445.3 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/0.2882, allocations: 176 kB / 445.4 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.2882, allocations: 15.88 kB / 445.4 MB, free: 4.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.2893, allocations: 171.1 kB / 445.6 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/0.2894, allocations: 27.98 kB / 445.6 MB, free: 4.277 MB / 314.7 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.0007672/0.2901, allocations: 0.5576 MB / 446.2 MB, free: 3.711 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.2904, allocations: 181.8 kB / 446.4 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.292, allocations: 0.7431 MB / 447.1 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.292, allocations: 4 kB / 447.1 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.292, allocations: 7.938 kB / 447.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2921, allocations: 0 / 447.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.2957, allocations: 2.184 MB / 449.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2957, allocations: 4 kB / 449.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005413/0.2963, allocations: 119.8 kB / 449.4 MB, free: 396 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/0.2963, allocations: 4 kB / 449.4 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.2963, allocations: 11.98 kB / 449.4 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.2963, allocations: 4 kB / 449.5 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.2963, allocations: 96 / 449.5 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/0.316, allocations: 7.915 MB / 457.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008939/0.3169, allocations: 410.6 kB / 457.8 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.3172, allocations: 19.94 kB / 457.8 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.3184, allocations: 147.8 kB / 457.9 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.3187, allocations: 155.7 kB / 458.1 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.3188, allocations: 20 kB / 458.1 MB, free: 7.473 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002939/0.3217, allocations: 1.959 MB / 460.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3217, allocations: 4 kB / 460.1 MB, free: 5.488 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001552/0.3233, allocations: 459.2 kB / 460.5 MB, free: 5.039 MB / 330.7 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.00132/0.3246, allocations: 0.5734 MB / 461.1 MB, free: 4.676 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3261, allocations: 0.6311 MB / 461.7 MB, free: 4.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.3262, allocations: 4 kB / 461.7 MB, free: 4.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007591/0.3269, allocations: 376.7 kB / 462.1 MB, free: 3.668 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.3287, allocations: 315.3 kB / 462.4 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006767/0.3355, allocations: 4.365 MB / 466.8 MB, free: 14.94 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.3368, allocations: 1.449 MB / 468.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009852/0.3378, allocations: 307.1 kB / 468.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004345/0.3383, allocations: 107.4 kB / 468.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of SimCode: time 2.815e-06/0.3383, allocations: 0 / 468.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of Templates: time 0.03547/0.3738, allocations: 21.1 MB / 489.7 MB, free: 8.07 MB / 362.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches