Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) 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: "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 101.5 kB / 16.45 MB, free: 6.438 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.0009976/0.0009977, allocations: 189.4 kB / 17.39 MB, free: 5.691 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.276/1.276, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04491/0.04491, allocations: 8.089 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001082, allocations: 75.88 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.08565, allocations: 51.51 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005462/0.09115, allocations: 4.608 MB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.09367, allocations: 1.756 MB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.09389, allocations: 12 kB / 471.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008298/0.09474, allocations: 0.4891 MB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006427/0.09539, allocations: 394 kB / 472.8 MB, free: 11.39 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001938/0.09734, allocations: 1.085 MB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007692/0.09812, allocations: 0.8295 MB / 474.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.09854, allocations: 325.5 kB / 475 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.09888, allocations: 390.7 kB / 475.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.09951, allocations: 0.5646 MB / 475.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.09963, allocations: 87.98 kB / 476 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.1001, allocations: 311.8 kB / 476.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003133/0.1004, allocations: 426.7 kB / 476.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.1009, allocations: 0.5982 MB / 477.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.1023, allocations: 1.66 MB / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1023, allocations: 0 / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1023, allocations: 0 / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1023, allocations: 0 / 479 MB, free: 5.117 MB / 350.1 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.003781/0.1061, allocations: 1.91 MB / 480.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1061, allocations: 11.89 kB / 480.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.1063, allocations: 106.7 kB / 481 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.1065, allocations: 147.2 kB / 481.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.1077, allocations: 0.9621 MB / 482.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.1079, allocations: 232.1 kB / 482.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.466e-05/0.108, allocations: 60.38 kB / 482.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.1093, allocations: 0.8394 MB / 483.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1093, allocations: 0 / 483.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.973e-05/0.1094, allocations: 24 kB / 483.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.1094, allocations: 16 kB / 483.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.1105, allocations: 0.6728 MB / 484 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004559/0.115, allocations: 3.546 MB / 487.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.1171, allocations: 1.437 MB / 488.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000779/0.1179, allocations: 0.5002 MB / 489.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.118, allocations: 98.08 kB / 489.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009483/0.119, allocations: 0.5515 MB / 490.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 3.096e-06/0.119, allocations: 0 / 490.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.007381/0.1264, allocations: 2.519 MB / 492.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.1266, allocations: 278 kB / 492.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.1286, allocations: 1.783 MB / 494.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.434e-05/0.1286, allocations: 49.64 kB / 494.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.129, allocations: 493.6 kB / 495.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.1293, allocations: 287.8 kB / 495.5 MB, free: 3.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.1295, allocations: 150.5 kB / 495.6 MB, free: 3.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1296, allocations: 341.9 kB / 496 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006036/0.1302, allocations: 357.8 kB / 496.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007213/0.131, allocations: 0.4949 MB / 496.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005533/0.1365, allocations: 1.944 MB / 498.7 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1365, allocations: 4 kB / 498.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003009/0.1396, allocations: 1.415 MB / 0.4884 GB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1396, allocations: 4 kB / 0.4884 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1396, allocations: 4 kB / 0.4885 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.1413, allocations: 0.541 MB / 0.489 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.1417, allocations: 115.8 kB / 0.4891 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.1432, allocations: 1.181 MB / 0.4902 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.1438, allocations: 87.25 kB / 0.4903 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.193e-05/0.1438, allocations: 31.98 kB / 0.4904 GB, free: 13.23 MB / 382.1 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 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.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.0006862/0.1445, allocations: 460.8 kB / 0.4908 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.1448, allocations: 118.5 kB / 0.4909 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/0.148, allocations: 1.483 MB / 0.4924 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.148, allocations: 12 kB / 0.4924 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.148, allocations: 0 / 0.4924 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1481, allocations: 3.984 kB / 0.4924 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00531/0.1534, allocations: 3.134 MB / 0.4954 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1534, allocations: 0 / 0.4954 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.1538, allocations: 111.8 kB / 0.4955 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001615/0.1554, allocations: 0.5238 MB / 0.4961 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.1555, allocations: 19.98 kB / 0.4961 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.157, allocations: 1.162 MB / 0.4972 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.157, allocations: 4 kB / 0.4972 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003868/0.1609, allocations: 1.993 MB / 0.4992 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.1613, allocations: 279.3 kB / 0.4994 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.1615, allocations: 16 kB / 0.4994 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.162, allocations: 51.95 kB / 0.4995 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.1622, allocations: 72.89 kB / 0.4996 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/0.1622, allocations: 28 kB / 0.4996 GB, free: 3.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001627/0.1639, allocations: 1.289 MB / 0.5008 GB, free: 2.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1639, allocations: 0 / 0.5008 GB, free: 2.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006688/0.1645, allocations: 239.7 kB / 0.5011 GB, free: 2.098 MB / 382.1 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.1819/0.3465, allocations: 2.737 MB / 0.5037 GB, free: 46.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.3492, allocations: 1.104 MB / 0.5048 GB, free: 46.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3492, allocations: 1.156 kB / 0.5048 GB, free: 46.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.3508, allocations: 0.6778 MB / 0.5055 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008084/0.3516, allocations: 113.4 kB / 0.5056 GB, free: 46.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/0.3699, allocations: 12.93 MB / 0.5182 GB, free: 41.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006908/0.3706, allocations: 1.173 MB / 0.5194 GB, free: 40.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000415/0.3711, allocations: 169.7 kB / 0.5195 GB, free: 40.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/0.3715, allocations: 429.1 kB / 0.5199 GB, free: 40.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3715, allocations: 1.375 kB / 0.5199 GB, free: 40.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03906/0.4106, allocations: 27.12 MB / 0.5464 GB, free: 16.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.47, allocations: 7.75 kB / 0.5464 GB, free: 16.12 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)