Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 107.7 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 51.58 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1227, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.009004/0.1317, allocations: 5.794 MB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005247/0.137, allocations: 2.571 MB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.1383, allocations: 31.81 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002345/0.1407, allocations: 0.7661 MB / 360.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001792/0.1425, allocations: 0.5049 MB / 361.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1442, allocations: 0.5023 MB / 361.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002559/0.1468, allocations: 1.589 MB / 363.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.1479, allocations: 0.5999 MB / 363.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.149, allocations: 0.6073 MB / 364.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.1505, allocations: 0.7393 MB / 365.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.1509, allocations: 132 kB / 365.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005762/0.1515, allocations: 207.9 kB / 365.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000576/0.152, allocations: 0.6388 MB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008834/0.1529, allocations: 0.9166 MB / 367.1 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002515/0.1555, allocations: 2.484 MB / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1555, allocations: 0 / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1555, allocations: 0 / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.1555, allocations: 0 / 369.6 MB, free: 1.531 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.2273/0.3829, allocations: 2.56 MB / 372.1 MB, free: 24.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.3829, allocations: 9.625 kB / 372.1 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007932/0.3837, allocations: 222.6 kB / 372.4 MB, free: 24.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004043/0.3878, allocations: 1.544 MB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.388, allocations: 94.8 kB / 374 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000259/0.3883, allocations: 84.77 kB / 374.1 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.3907, allocations: 1.103 MB / 375.2 MB, free: 23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.3908, allocations: 5.125 kB / 375.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.3909, allocations: 40.41 kB / 375.2 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.928e-05/0.3909, allocations: 21.19 kB / 375.2 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.3925, allocations: 0.7213 MB / 376 MB, free: 22.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009726/0.4022, allocations: 4.582 MB / 380.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.4036, allocations: 0.9426 MB / 381.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007777/0.4044, allocations: 398.6 kB / 381.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-05/0.4045, allocations: 6.359 kB / 381.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.4046, allocations: 43.88 kB / 381.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.715e-06/0.4046, allocations: 1.469 kB / 381.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002212/0.4068, allocations: 0.8167 MB / 382.7 MB, free: 18.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.4069, allocations: 419.8 kB / 383.2 MB, free: 18.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004128/0.411, allocations: 2.745 MB / 385.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4112, allocations: 37.61 kB / 385.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000675/0.4119, allocations: 0.8706 MB / 386.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.412, allocations: 163.8 kB / 387 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.4122, allocations: 126.2 kB / 387.1 MB, free: 16.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.699e-05/0.4123, allocations: 335.9 kB / 387.4 MB, free: 16.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005041/0.4128, allocations: 254.6 kB / 387.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.4135, allocations: 0.5429 MB / 388.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008936/0.4144, allocations: 0.6103 MB / 388.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.4144, allocations: 2.25 kB / 388.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001701/0.4161, allocations: 0.8475 MB / 389.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.4161, allocations: 11.94 kB / 389.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4162, allocations: 4.625 kB / 389.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.4162, allocations: 8.969 kB / 389.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005459/0.4167, allocations: 159.1 kB / 389.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.4168, allocations: 15.72 kB / 389.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.418, allocations: 157.2 kB / 390 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/0.418, allocations: 27.69 kB / 390 MB, free: 14.83 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.0007306/0.4188, allocations: 0.5531 MB / 390.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003099/0.4191, allocations: 180.3 kB / 390.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.4203, allocations: 0.7018 MB / 391.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.4204, allocations: 4.125 kB / 391.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4204, allocations: 4 kB / 391.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4204, allocations: 1.375 kB / 391.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.4238, allocations: 2.119 MB / 393.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4238, allocations: 5.703 kB / 393.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004821/0.4243, allocations: 110.4 kB / 393.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.4243, allocations: 0 / 393.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.4244, allocations: 15.53 kB / 393.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.4244, allocations: 9.484 kB / 393.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4244, allocations: 2.375 kB / 393.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.4261, allocations: 1.05 MB / 394.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009869/0.4271, allocations: 404.3 kB / 395.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/0.4274, allocations: 19.83 kB / 395.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009945/0.4284, allocations: 134.9 kB / 395.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.4287, allocations: 155.3 kB / 395.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.4287, allocations: 16 kB / 395.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002334/0.431, allocations: 1.947 MB / 397.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4311, allocations: 4 kB / 397.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001142/0.4322, allocations: 311.2 kB / 397.8 MB, free: 9.215 MB / 302.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.001168/0.4334, allocations: 491.6 kB / 398.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.4346, allocations: 0.5845 MB / 398.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4346, allocations: 4 kB / 398.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005577/0.4352, allocations: 348.5 kB / 399.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.4369, allocations: 308.1 kB / 399.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004943/0.4418, allocations: 3.472 MB / 402.9 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000769/0.4426, allocations: 1.433 MB / 404.4 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008418/0.4435, allocations: 298.8 kB / 404.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.4438, allocations: 103.4 kB / 404.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4438, allocations: 4 kB / 404.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of Templates: time 0.04065/0.4845, allocations: 21.15 MB / 425.9 MB, free: 13.42 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches