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.00148/0.00148, allocations: 100.6 kB / 16.5 MB, free: 6.688 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.00174/0.00174, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.383/1.383, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 43.59 kB / 299.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.09965, allocations: 49.46 MB / 349.4 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006657/0.1064, allocations: 5.782 MB / 355.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.1103, allocations: 2.536 MB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004313/0.1107, allocations: 27.88 kB / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.1129, allocations: 0.7083 MB / 358.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.1142, allocations: 461.8 kB / 358.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.1158, allocations: 477 kB / 359.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002238/0.118, allocations: 1.519 MB / 360.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1191, allocations: 0.5201 MB / 361.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009826/0.1201, allocations: 0.5331 MB / 361.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.1211, allocations: 0.7041 MB / 362.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.1214, allocations: 80 kB / 362.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.1219, allocations: 151.9 kB / 362.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006954/0.1226, allocations: 0.5919 MB / 363.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.1237, allocations: 0.8502 MB / 364.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0029/0.1266, allocations: 2.382 MB / 366.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1266, allocations: 0 / 366.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1266, allocations: 0 / 366.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.841e-05/0.1267, allocations: 3.938 kB / 366.7 MB, free: 3.469 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.007404/0.1341, allocations: 2.563 MB / 369.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.1342, allocations: 12.03 kB / 369.3 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005538/0.1347, allocations: 222.2 kB / 369.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1782/0.3129, allocations: 1.515 MB / 371 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005637/0.3135, allocations: 178.1 kB / 371.2 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.3137, allocations: 83.11 kB / 371.3 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.3158, allocations: 1.124 MB / 372.4 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3158, allocations: 5.438 kB / 372.4 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.318e-05/0.3159, allocations: 38.91 kB / 372.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.3159, allocations: 24.56 kB / 372.5 MB, free: 24.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.3175, allocations: 0.7363 MB / 373.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007124/0.3246, allocations: 4.653 MB / 377.8 MB, free: 21.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.3261, allocations: 0.998 MB / 378.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008881/0.327, allocations: 406.7 kB / 379.2 MB, free: 20.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.166e-05/0.3271, allocations: 11.06 kB / 379.3 MB, free: 20.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.3271, allocations: 43.72 kB / 379.3 MB, free: 20.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.635e-06/0.3271, allocations: 1.156 kB / 379.3 MB, free: 20.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002256/0.3294, allocations: 0.8877 MB / 380.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.926e-05/0.3295, allocations: 419.7 kB / 380.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/0.3331, allocations: 2.735 MB / 383.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.65e-05/0.3331, allocations: 38.3 kB / 383.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005882/0.3337, allocations: 0.8793 MB / 384.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3338, allocations: 155.2 kB / 384.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.3341, allocations: 128.7 kB / 384.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.3341, allocations: 327 kB / 384.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006568/0.3348, allocations: 278.9 kB / 385.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000781/0.3356, allocations: 0.5566 MB / 385.7 MB, free: 16.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.3368, allocations: 0.6551 MB / 386.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3369, allocations: 5.688 kB / 386.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001908/0.3388, allocations: 0.8912 MB / 387.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.3388, allocations: 10.31 kB / 387.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3388, allocations: 10.88 kB / 387.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3388, allocations: 11.98 kB / 387.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006667/0.3395, allocations: 171.4 kB / 387.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.3396, allocations: 12.62 kB / 387.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.3407, allocations: 174 kB / 387.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.3407, allocations: 26.22 kB / 387.6 MB, free: 15.89 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.0007322/0.3415, allocations: 0.5625 MB / 388.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.3417, allocations: 179.8 kB / 388.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.3432, allocations: 0.744 MB / 389.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3432, allocations: 3.938 kB / 389.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3432, allocations: 0 / 389.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3433, allocations: 3.984 kB / 389.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.3465, allocations: 2.164 MB / 391.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3466, allocations: 1.375 kB / 391.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.3471, allocations: 123.8 kB / 391.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.3472, allocations: 10.78 kB / 391.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.3472, allocations: 8.125 kB / 391.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3472, allocations: 2.75 kB / 391.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3472, allocations: 1.375 kB / 391.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.3493, allocations: 1.114 MB / 392.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005741/0.3499, allocations: 417.9 kB / 392.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.3501, allocations: 10.53 kB / 393 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.3512, allocations: 153.6 kB / 393.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002972/0.3515, allocations: 153.3 kB / 393.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.3515, allocations: 15.44 kB / 393.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002224/0.3537, allocations: 1.952 MB / 395.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3537, allocations: 3.828 kB / 395.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008672/0.3546, allocations: 314.4 kB / 395.5 MB, free: 11.14 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.00108/0.3557, allocations: 479 kB / 396 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.357, allocations: 0.6358 MB / 396.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.3571, allocations: 8.062 kB / 396.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006595/0.3577, allocations: 367.6 kB / 397 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.359, allocations: 301.9 kB / 397.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004853/0.3639, allocations: 4.053 MB / 401.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007167/0.3646, allocations: 1.433 MB / 402.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007206/0.3653, allocations: 294.8 kB / 403.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.3656, allocations: 103.4 kB / 403.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3656, allocations: 3.938 kB / 403.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of Templates: time 0.03202/0.3977, allocations: 19.45 MB / 422.6 MB, free: 396 kB / 318.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/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