Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 172.7 kB / 16.12 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 225.7 MB / 242.6 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008602/0.0008602, allocations: 86.33 kB / 293.8 MB, free: 9.48 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0491/0.0491, allocations: 8.103 MB / 353 MB, free: 14.18 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003081, allocations: 12 kB / 416.2 MB, free: 56.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1043, allocations: 52.52 MB / 468.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.003913/0.1083, allocations: 4.081 MB / 472.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.1115, allocations: 2.188 MB / 475 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003101/0.1118, allocations: 12 kB / 475 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1128, allocations: 482.7 kB / 475.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008036/0.1136, allocations: 386.3 kB / 475.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.1159, allocations: 2.111 MB / 478 MB, free: 9.789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009889/0.1169, allocations: 0.817 MB / 478.8 MB, free: 8.969 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.1173, allocations: 267.7 kB / 479.1 MB, free: 8.703 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.1176, allocations: 318.7 kB / 479.4 MB, free: 8.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006203/0.1182, allocations: 0.5255 MB / 479.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.036e-05/0.1183, allocations: 40 kB / 479.9 MB, free: 7.824 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005684/0.1189, allocations: 247.8 kB / 480.2 MB, free: 7.582 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003328/0.1192, allocations: 386.7 kB / 480.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005118/0.1198, allocations: 0.5608 MB / 481.1 MB, free: 6.633 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.1213, allocations: 1.577 MB / 482.7 MB, free: 5.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1213, allocations: 3.938 kB / 482.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1213, allocations: 0 / 482.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1214, allocations: 0 / 482.7 MB, free: 5.047 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004745/0.1261, allocations: 1.901 MB / 484.6 MB, free: 3.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1262, allocations: 12.03 kB / 484.6 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.1264, allocations: 147.2 kB / 484.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001409/0.1278, allocations: 0.9861 MB / 485.7 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.128, allocations: 194.3 kB / 485.9 MB, free: 1.676 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1282, allocations: 64.36 kB / 486 MB, free: 1.613 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.1297, allocations: 0.8596 MB / 486.8 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1297, allocations: 3.938 kB / 486.8 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.1298, allocations: 24 kB / 486.9 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1298, allocations: 12 kB / 486.9 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1997/0.3295, allocations: 0.7262 MB / 487.6 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006704/0.3362, allocations: 4.105 MB / 491.7 MB, free: 23.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002054/0.3383, allocations: 1.298 MB / 493 MB, free: 22.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000903/0.3392, allocations: 0.559 MB / 493.6 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.18e-05/0.3393, allocations: 21.97 kB / 493.6 MB, free: 22.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.3394, allocations: 40.89 kB / 493.6 MB, free: 22.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=85): time 2.645e-06/0.3394, allocations: 0.5312 kB / 493.6 MB, free: 22.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.01145/0.3508, allocations: 3.229 MB / 496.9 MB, free: 21.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.351, allocations: 242.8 kB / 497.1 MB, free: 21.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003455/0.3545, allocations: 1.802 MB / 498.9 MB, free: 20.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001606/0.3546, allocations: 42.55 kB / 498.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004554/0.3551, allocations: 495.5 kB / 499.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.3554, allocations: 289.6 kB / 499.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.3554, allocations: 15.38 kB / 499.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.441e-05/0.3555, allocations: 338.2 kB / 0.4883 GB, free: 19.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008018/0.3563, allocations: 430.8 kB / 0.4887 GB, free: 19.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.3572, allocations: 0.5457 MB / 0.4893 GB, free: 19.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008691/0.3659, allocations: 2.658 MB / 0.4919 GB, free: 18.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3659, allocations: 2.25 kB / 0.4919 GB, free: 18.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004533/0.3705, allocations: 1.736 MB / 0.4936 GB, free: 17.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.3705, allocations: 5.969 kB / 0.4936 GB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3705, allocations: 1.125 kB / 0.4936 GB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/0.3736, allocations: 0.8259 MB / 0.4944 GB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.3742, allocations: 118.6 kB / 0.4945 GB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002709/0.3769, allocations: 1.488 MB / 0.496 GB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3779, allocations: 92.58 kB / 0.496 GB, free: 16.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-05/0.378, allocations: 34.17 kB / 0.4961 GB, free: 16.07 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001228/0.3792, allocations: 443.5 kB / 0.4965 GB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/0.3795, allocations: 118.8 kB / 0.4966 GB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004591/0.3841, allocations: 1.794 MB / 0.4984 GB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.3841, allocations: 11.09 kB / 0.4984 GB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3841, allocations: 0 / 0.4984 GB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3842, allocations: 7.969 kB / 0.4984 GB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005602/0.3898, allocations: 3.424 MB / 0.5017 GB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3898, allocations: 0 / 0.5017 GB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.3902, allocations: 114.6 kB / 0.5018 GB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002434/0.3926, allocations: 0.789 MB / 0.5026 GB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/0.3927, allocations: 23.98 kB / 0.5026 GB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.3947, allocations: 1.459 MB / 0.5041 GB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3947, allocations: 6.312 kB / 0.5041 GB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.399, allocations: 2.37 MB / 0.5064 GB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003546/0.3993, allocations: 275.5 kB / 0.5066 GB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.3995, allocations: 23.92 kB / 0.5067 GB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005107/0.4, allocations: 63.97 kB / 0.5067 GB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.4002, allocations: 64.91 kB / 0.5068 GB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.4002, allocations: 25.41 kB / 0.5068 GB, free: 7.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001359/0.4016, allocations: 1.294 MB / 0.5081 GB, free: 5.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.4016, allocations: 0 / 0.5081 GB, free: 5.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006835/0.4023, allocations: 251.6 kB / 0.5083 GB, free: 5.688 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007233/0.403, allocations: 333.2 kB / 0.5086 GB, free: 5.441 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.4062, allocations: 1.363 MB / 0.51 GB, free: 4.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4062, allocations: 3.938 kB / 0.51 GB, free: 4.078 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/0.4084, allocations: 0.8601 MB / 0.5108 GB, free: 3.223 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.4092, allocations: 108.7 kB / 0.5109 GB, free: 3.117 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.4132, allocations: 2.992 MB / 0.5138 GB, free: 96 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007646/0.4139, allocations: 1.173 MB / 0.515 GB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003938/0.4143, allocations: 163.2 kB / 0.5151 GB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.4145, allocations: 71.42 kB / 0.5152 GB, free: 14.66 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4146, allocations: 4 kB / 0.5152 GB, free: 14.66 MB / 330.7 MB Notification: Performance of Templates: time 0.02562/0.4402, allocations: 15.15 MB / 0.53 GB, free: 15.52 MB / 346.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)