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.001052/0.001052, allocations: 106.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.001075/0.001075, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.248/1.248, 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.04512/0.04512, allocations: 8.096 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001313, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08756/0.08889, allocations: 51.51 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.006385/0.09531, allocations: 4.608 MB / 470.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003317/0.09866, allocations: 1.759 MB / 471.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005942/0.09927, allocations: 8 kB / 471.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.1004, allocations: 0.4891 MB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.1016, allocations: 393.9 kB / 472.8 MB, free: 11.38 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.002164/0.1037, allocations: 1.078 MB / 473.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.1049, allocations: 0.8256 MB / 474.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005294/0.1055, allocations: 329.5 kB / 475 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005625/0.1061, allocations: 386.7 kB / 475.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008533/0.1069, allocations: 0.5762 MB / 475.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.1071, allocations: 87.98 kB / 476 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006683/0.1078, allocations: 307.8 kB / 476.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003594/0.1082, allocations: 422.8 kB / 476.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006858/0.1089, allocations: 0.602 MB / 477.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.1107, allocations: 1.656 MB / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1107, allocations: 0 / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1107, allocations: 0 / 479 MB, free: 5.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.177e-05/0.1108, 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.004885/0.1157, allocations: 1.906 MB / 480.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1157, allocations: 11.89 kB / 480.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001655/0.1159, allocations: 118.7 kB / 481 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.1162, allocations: 147.2 kB / 481.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1177, allocations: 0.966 MB / 482.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.1179, allocations: 224.1 kB / 482.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.822e-05/0.118, allocations: 60.38 kB / 482.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.1194, allocations: 0.8356 MB / 483.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.1195, allocations: 0 / 483.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.414e-05/0.1195, allocations: 28 kB / 483.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.1196, allocations: 12 kB / 483.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.1208, allocations: 0.6806 MB / 484 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005421/0.1262, allocations: 3.542 MB / 487.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.1284, allocations: 1.435 MB / 488.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008502/0.1293, allocations: 0.5079 MB / 489.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001702/0.1295, allocations: 102.1 kB / 489.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009776/0.1305, allocations: 0.5359 MB / 490.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 3.306e-06/0.1305, allocations: 0 / 490.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.00779/0.1383, allocations: 2.531 MB / 492.6 MB, free: 6.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.1384, allocations: 270 kB / 492.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/0.1409, allocations: 1.783 MB / 494.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-05/0.141, allocations: 45.7 kB / 494.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/0.1414, allocations: 497.6 kB / 495.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000231/0.1416, allocations: 287.8 kB / 495.5 MB, free: 3.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.1419, allocations: 146.6 kB / 495.6 MB, free: 3.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.142, allocations: 345.9 kB / 496 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006527/0.1427, allocations: 353.9 kB / 496.3 MB, free: 3.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007504/0.1434, allocations: 0.4949 MB / 496.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005961/0.1494, allocations: 1.948 MB / 498.7 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1494, allocations: 4 kB / 498.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003253/0.1527, allocations: 1.407 MB / 0.4884 GB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1527, allocations: 4 kB / 0.4884 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1527, allocations: 7.938 kB / 0.4884 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.1545, allocations: 0.5449 MB / 0.489 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.1549, allocations: 115.9 kB / 0.4891 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.1565, allocations: 1.181 MB / 0.4902 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.1573, allocations: 87.25 kB / 0.4903 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.182e-05/0.1573, 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.0007107/0.1581, allocations: 457.5 kB / 0.4908 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/0.1584, allocations: 118.5 kB / 0.4909 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/0.1617, allocations: 1.487 MB / 0.4924 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.1617, allocations: 12 kB / 0.4924 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.1617, allocations: 0 / 0.4924 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.1617, allocations: 3.984 kB / 0.4924 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005603/0.1673, allocations: 3.138 MB / 0.4954 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1674, allocations: 0 / 0.4954 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.1677, allocations: 103.9 kB / 0.4955 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001728/0.1695, allocations: 0.5238 MB / 0.496 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.761e-05/0.1696, allocations: 19.98 kB / 0.4961 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.1712, allocations: 1.17 MB / 0.4972 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1712, allocations: 0 / 0.4972 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004088/0.1753, allocations: 1.997 MB / 0.4992 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005809/0.1759, allocations: 275.3 kB / 0.4994 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/0.1761, allocations: 20 kB / 0.4994 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.1767, allocations: 51.95 kB / 0.4995 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.1769, allocations: 68.91 kB / 0.4996 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.177, allocations: 31.98 kB / 0.4996 GB, free: 3.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001814/0.1788, allocations: 1.285 MB / 0.5008 GB, free: 2.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1788, allocations: 0 / 0.5008 GB, free: 2.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007858/0.1796, allocations: 247.7 kB / 0.5011 GB, free: 2.086 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.1856/0.3652, allocations: 2.725 MB / 0.5037 GB, free: 46.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003106/0.3684, allocations: 1.11 MB / 0.5048 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.3684, allocations: 0 / 0.5048 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.3704, allocations: 0.6819 MB / 0.5055 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009926/0.3714, allocations: 112 kB / 0.5056 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/0.3906, 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.0006883/0.3914, allocations: 1.177 MB / 0.5194 GB, free: 40.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.3918, allocations: 171.5 kB / 0.5195 GB, free: 40.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.3922, allocations: 428.6 kB / 0.5199 GB, free: 40.1 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3923, allocations: 0 / 0.5199 GB, free: 40.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04443/0.4367, allocations: 27.74 MB / 0.547 GB, free: 15.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.5, allocations: 6.219 kB / 0.547 GB, free: 15.49 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)