Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00193/0.00193, allocations: 170.8 kB / 16.12 MB, free: 5.668 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.66/1.66, allocations: 225.7 MB / 242.6 MB, free: 8.453 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.0008199/0.0008203, allocations: 98.48 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.04881/0.04881, allocations: 8.108 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.0003018/0.0003016, allocations: 8 kB / 416.2 MB, free: 56.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08641/0.08672, allocations: 52.51 MB / 468.7 MB, free: 3.551 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.003766/0.09054, allocations: 4.005 MB / 472.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.0938, allocations: 2.476 MB / 475.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003129/0.09415, allocations: 12 kB / 475.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008911/0.09505, allocations: 466.8 kB / 475.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006797/0.09574, allocations: 350.5 kB / 476 MB, free: 12.02 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.002357/0.09811, allocations: 2.135 MB / 478.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009151/0.09904, allocations: 0.8021 MB / 479 MB, free: 8.805 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004089/0.09945, allocations: 273.2 kB / 479.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003214/0.09978, allocations: 322.7 kB / 479.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006184/0.1004, allocations: 0.5256 MB / 480.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.829e-05/0.1005, allocations: 36 kB / 480.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005196/0.101, allocations: 251.8 kB / 480.3 MB, free: 7.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.1014, allocations: 374.8 kB / 480.7 MB, free: 7.043 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.1019, allocations: 0.5646 MB / 481.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.1033, allocations: 1.557 MB / 482.8 MB, free: 4.906 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1033, allocations: 0 / 482.8 MB, free: 4.906 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1033, allocations: 0 / 482.8 MB, free: 4.906 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1033, allocations: 0 / 482.8 MB, free: 4.906 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.00367/0.107, allocations: 1.68 MB / 484.5 MB, free: 3.172 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.1071, allocations: 12.03 kB / 484.5 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/0.1073, allocations: 147.2 kB / 484.7 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1086, allocations: 0.9621 MB / 485.6 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.1088, allocations: 228 kB / 485.9 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.553e-05/0.1089, allocations: 60.38 kB / 485.9 MB, free: 1.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.1103, allocations: 0.8397 MB / 486.8 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1104, allocations: 3.938 kB / 486.8 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.1104, allocations: 24 kB / 486.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.1105, allocations: 16 kB / 486.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.1116, allocations: 0.6806 MB / 487.5 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1838/0.2954, allocations: 3.59 MB / 491.1 MB, free: 24.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.2975, allocations: 1.433 MB / 492.5 MB, free: 23.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008166/0.2984, allocations: 0.5066 MB / 493 MB, free: 23.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001425/0.2985, allocations: 108.2 kB / 493.1 MB, free: 23.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009346/0.2995, allocations: 0.5482 MB / 493.7 MB, free: 22.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 2.494e-06/0.2995, allocations: 3.938 kB / 493.7 MB, free: 22.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=89): time 0.007782/0.3073, allocations: 2.648 MB / 496.3 MB, free: 22.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.3074, allocations: 271.8 kB / 496.6 MB, free: 21.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.3098, allocations: 1.779 MB / 498.4 MB, free: 21.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.665e-05/0.3099, allocations: 44.39 kB / 498.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.3103, allocations: 488.3 kB / 498.9 MB, free: 20.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.3105, allocations: 301.2 kB / 499.2 MB, free: 20.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.3106, allocations: 15.94 kB / 499.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.314e-05/0.3106, allocations: 338.4 kB / 499.5 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000656/0.3113, allocations: 363.8 kB / 499.9 MB, free: 20 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007307/0.312, allocations: 0.499 MB / 0.4886 GB, free: 19.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005574/0.3176, allocations: 1.996 MB / 0.4906 GB, free: 19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3177, allocations: 0 / 0.4906 GB, free: 19 MB / 314.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003167/0.3208, allocations: 1.45 MB / 0.492 GB, free: 18.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3209, allocations: 9.328 kB / 0.492 GB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3209, allocations: 1.188 kB / 0.492 GB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/0.3226, allocations: 0.5489 MB / 0.4926 GB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004121/0.323, allocations: 127.2 kB / 0.4927 GB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.3244, allocations: 1.187 MB / 0.4938 GB, free: 17.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/0.3251, allocations: 86.31 kB / 0.4939 GB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.3252, allocations: 30.88 kB / 0.4939 GB, free: 17.36 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: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,$PRE.delay.y,n2.y,n1.y,o.y,delay.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0006251/0.3258, allocations: 461 kB / 0.4944 GB, free: 17.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3259, allocations: 121.6 kB / 0.4945 GB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.3289, allocations: 1.517 MB / 0.496 GB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3289, allocations: 9.625 kB / 0.496 GB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3289, allocations: 3.984 kB / 0.496 GB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.329, allocations: 5.297 kB / 0.496 GB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004693/0.3337, allocations: 3.174 MB / 0.4991 GB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.3337, allocations: 3.188 kB / 0.4991 GB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.334, allocations: 112.1 kB / 0.4992 GB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.3356, allocations: 0.536 MB / 0.4997 GB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.873e-05/0.3356, allocations: 19.19 kB / 0.4998 GB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.3369, allocations: 1.17 MB / 0.5009 GB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3369, allocations: 3.938 kB / 0.5009 GB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.3402, allocations: 2.039 MB / 0.5029 GB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.3405, allocations: 271.4 kB / 0.5032 GB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.3406, allocations: 20 kB / 0.5032 GB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/0.3411, allocations: 68.02 kB / 0.5032 GB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3413, allocations: 68.84 kB / 0.5033 GB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.3413, allocations: 31.98 kB / 0.5033 GB, free: 10.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.3426, allocations: 1.274 MB / 0.5046 GB, free: 9.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3426, allocations: 0 / 0.5046 GB, free: 9.457 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000578/0.3431, allocations: 245.8 kB / 0.5048 GB, free: 9.219 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: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006164/0.3438, allocations: 336.7 kB / 0.5051 GB, free: 8.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.346, allocations: 1.113 MB / 0.5062 GB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.346, allocations: 4 kB / 0.5062 GB, free: 7.859 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.3475, allocations: 0.696 MB / 0.5069 GB, free: 7.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006549/0.3482, allocations: 112.4 kB / 0.507 GB, free: 7.051 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/0.3517, allocations: 2.907 MB / 0.5098 GB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.3522, allocations: 1.173 MB / 0.511 GB, free: 2.918 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003475/0.3526, allocations: 164.2 kB / 0.5112 GB, free: 2.754 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.3527, allocations: 71.42 kB / 0.5112 GB, free: 2.684 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.3527, allocations: 0 / 0.5112 GB, free: 2.684 MB / 314.7 MB Notification: Performance of Templates: time 0.0211/0.3738, allocations: 13.97 MB / 0.5249 GB, free: 4.734 MB / 330.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)