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.004649/0.004649, allocations: 88.56 kB / 15.91 MB, free: 6.305 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.001093/0.001093, allocations: 196.2 kB / 16.83 MB, free: 6.238 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.277/1.277, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1511/0.1511, allocations: 8.093 MB / 298.7 MB, free: 2.055 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 59.91 kB / 361.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09265, allocations: 51.52 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005979/0.09866, allocations: 4.601 MB / 417.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.1016, allocations: 1.736 MB / 419 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005034/0.1022, allocations: 16 kB / 419 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1033, allocations: 462.8 kB / 419.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009175/0.1042, allocations: 362.4 kB / 419.8 MB, free: 2.891 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.001954/0.1062, allocations: 1.028 MB / 420.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.1072, allocations: 0.7866 MB / 421.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.1077, allocations: 285.2 kB / 421.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.1082, allocations: 342.7 kB / 422.3 MB, free: 460 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007622/0.1089, allocations: 0.5686 MB / 422.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.1091, allocations: 59.94 kB / 422.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005986/0.1097, allocations: 275.7 kB / 423.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003212/0.11, allocations: 406.7 kB / 423.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.1106, allocations: 0.5591 MB / 424.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.1125, allocations: 1.597 MB / 425.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1125, allocations: 0 / 425.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1125, allocations: 0 / 425.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.1126, allocations: 0 / 425.7 MB, free: 12.99 MB / 366.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.00515/0.1177, allocations: 1.906 MB / 427.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.1178, allocations: 12.03 kB / 427.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.1179, allocations: 114.7 kB / 427.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.1182, allocations: 151.2 kB / 427.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.1195, allocations: 0.9621 MB / 428.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.1197, allocations: 220.1 kB / 429.1 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.033e-05/0.1198, allocations: 60.38 kB / 429.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1212, allocations: 0.8317 MB / 429.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1212, allocations: 0 / 429.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.1213, allocations: 28 kB / 430 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.1213, allocations: 16 kB / 430 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1225, allocations: 0.6805 MB / 430.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005049/0.1276, allocations: 3.569 MB / 434.2 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.1297, allocations: 1.425 MB / 435.7 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008254/0.1306, allocations: 0.5002 MB / 436.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.1307, allocations: 102.1 kB / 436.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009827/0.1317, allocations: 0.5476 MB / 436.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.866e-06/0.1318, allocations: 0 / 436.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.1783/0.3101, allocations: 2.521 MB / 439.3 MB, free: 56.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.3102, allocations: 275.3 kB / 439.6 MB, free: 56.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/0.3119, allocations: 1.784 MB / 441.4 MB, free: 55.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.057e-05/0.312, allocations: 42.23 kB / 441.4 MB, free: 55.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.3123, allocations: 492 kB / 441.9 MB, free: 55.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.3125, allocations: 295.7 kB / 442.2 MB, free: 55.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/0.3127, allocations: 149.3 kB / 442.3 MB, free: 55.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.3127, allocations: 336.2 kB / 442.7 MB, free: 55.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00057/0.3133, allocations: 353.9 kB / 443 MB, free: 55.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006208/0.3139, allocations: 0.4923 MB / 443.5 MB, free: 55.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005419/0.3194, allocations: 1.946 MB / 445.5 MB, free: 54.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3194, allocations: 0 / 445.5 MB, free: 54.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003008/0.3224, allocations: 1.417 MB / 446.9 MB, free: 54.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3225, allocations: 7.375 kB / 446.9 MB, free: 54.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.3225, allocations: 3.156 kB / 446.9 MB, free: 54.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.3241, allocations: 0.5492 MB / 447.4 MB, free: 53.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/0.3245, allocations: 112.2 kB / 447.5 MB, free: 53.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3259, allocations: 1.194 MB / 448.7 MB, free: 53.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/0.3265, allocations: 76.42 kB / 448.8 MB, free: 52.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.3266, allocations: 34.92 kB / 448.8 MB, free: 52.98 MB / 366.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.0006049/0.3272, allocations: 451.5 kB / 449.3 MB, free: 52.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.3273, allocations: 119 kB / 449.4 MB, free: 52.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.3302, allocations: 1.483 MB / 450.9 MB, free: 52.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3302, allocations: 12.94 kB / 450.9 MB, free: 52.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3302, allocations: 0 / 450.9 MB, free: 52.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3302, allocations: 9.719 kB / 450.9 MB, free: 52.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00441/0.3346, allocations: 3.152 MB / 454.1 MB, free: 50.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3347, allocations: 3.781 kB / 454.1 MB, free: 50.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/0.335, allocations: 102.8 kB / 454.2 MB, free: 50.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.3366, allocations: 0.5224 MB / 454.7 MB, free: 50.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.3367, allocations: 18.25 kB / 454.7 MB, free: 50.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.3379, allocations: 1.167 MB / 455.9 MB, free: 49.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3379, allocations: 0 / 455.9 MB, free: 49.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003374/0.3413, allocations: 1.993 MB / 457.9 MB, free: 48.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.3416, allocations: 272.5 kB / 458.1 MB, free: 48.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.3417, allocations: 18.19 kB / 458.1 MB, free: 48.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.3422, allocations: 58.95 kB / 458.2 MB, free: 48.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.3424, allocations: 70.83 kB / 458.3 MB, free: 48.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.3425, allocations: 30.75 kB / 458.3 MB, free: 48.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.3437, allocations: 1.284 MB / 459.6 MB, free: 48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3437, allocations: 0 / 459.6 MB, free: 48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005987/0.3443, allocations: 240.7 kB / 459.8 MB, free: 47.96 MB / 366.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.004086/0.3484, allocations: 2.742 MB / 462.6 MB, free: 46.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.3508, allocations: 1.091 MB / 463.7 MB, free: 46.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3508, allocations: 0 / 463.7 MB, free: 46.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.3524, allocations: 0.671 MB / 464.3 MB, free: 45.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006805/0.3531, allocations: 111.8 kB / 464.4 MB, free: 45.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02147/0.3746, allocations: 14.17 MB / 478.6 MB, free: 39.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007522/0.3754, allocations: 1.176 MB / 479.8 MB, free: 38.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005728/0.376, allocations: 166 kB / 479.9 MB, free: 38.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005317/0.3765, allocations: 425.2 kB / 480.4 MB, free: 37.86 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3765, allocations: 0 / 480.4 MB, free: 37.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05181/0.4283, allocations: 25.5 MB / 0.494 GB, free: 24.93 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.4286, allocations: 284.6 kB / 0.4943 GB, free: 24.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.618, allocations: 11.44 kB / 0.4943 GB, free: 24.54 MB / 366.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)