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.00162/0.00162, allocations: 100.7 kB / 16.45 MB, free: 6.461 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.001746/0.001746, allocations: 192 kB / 17.38 MB, free: 5.688 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.442/1.442, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05442/0.05442, allocations: 8.106 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.09131, allocations: 51.52 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.006414/0.09777, allocations: 4.608 MB / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003392/0.1012, allocations: 1.752 MB / 471.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005746/0.1018, allocations: 8 kB / 471.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.1031, allocations: 0.4943 MB / 472.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.1042, allocations: 394 kB / 472.8 MB, free: 11.37 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.002469/0.1066, allocations: 1.086 MB / 473.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.108, allocations: 0.8256 MB / 474.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005375/0.1085, allocations: 333.5 kB / 475 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004681/0.109, allocations: 386.7 kB / 475.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008051/0.1098, allocations: 0.5646 MB / 475.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.11, allocations: 84 kB / 476 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007449/0.1107, allocations: 315.8 kB / 476.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000401/0.1112, allocations: 422.8 kB / 476.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006196/0.1118, allocations: 0.602 MB / 477.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.1141, allocations: 1.662 MB / 479 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1141, allocations: 0 / 479 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1141, allocations: 0 / 479 MB, free: 5.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.1141, allocations: 0 / 479 MB, free: 5.094 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.005008/0.1191, allocations: 1.951 MB / 481 MB, free: 3.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.1192, allocations: 11.89 kB / 481 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.1194, allocations: 118.7 kB / 481.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.1197, allocations: 155.9 kB / 481.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.1213, allocations: 0.9671 MB / 482.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.1215, allocations: 228.1 kB / 482.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1216, allocations: 60.38 kB / 482.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.1231, allocations: 0.8317 MB / 483.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.1232, allocations: 0 / 483.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.1233, allocations: 24 kB / 483.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.1233, allocations: 19.98 kB / 483.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1246, allocations: 0.6805 MB / 484 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005956/0.1306, allocations: 3.55 MB / 487.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.1332, allocations: 1.429 MB / 489 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000982/0.1343, allocations: 0.5041 MB / 489.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.1345, allocations: 98.08 kB / 489.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.1356, allocations: 0.5437 MB / 490.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 3.025e-06/0.1356, allocations: 0 / 490.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.008818/0.1444, allocations: 2.539 MB / 492.7 MB, free: 6.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.1446, allocations: 274 kB / 493 MB, free: 6.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002731/0.1474, allocations: 1.779 MB / 494.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.1475, allocations: 45.7 kB / 494.8 MB, free: 4.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.148, allocations: 498 kB / 495.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.1484, allocations: 305.3 kB / 495.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.1487, allocations: 150.6 kB / 495.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1489, allocations: 341.9 kB / 496.1 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007464/0.1496, allocations: 357.9 kB / 496.4 MB, free: 3.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008644/0.1505, allocations: 0.4949 MB / 496.9 MB, free: 2.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006763/0.1573, allocations: 1.952 MB / 498.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.1573, allocations: 4 kB / 498.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003822/0.1611, allocations: 1.419 MB / 0.4886 GB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.1612, allocations: 4 kB / 0.4886 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.1612, allocations: 4 kB / 0.4886 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.1632, allocations: 0.541 MB / 0.4891 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.1637, allocations: 119.8 kB / 0.4892 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.1656, allocations: 1.182 MB / 0.4904 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007481/0.1664, allocations: 87.48 kB / 0.4904 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.244e-05/0.1665, allocations: 31.98 kB / 0.4905 GB, free: 13.11 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.0008065/0.1673, allocations: 445.6 kB / 0.4909 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.1676, allocations: 127.2 kB / 0.491 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.1714, allocations: 1.494 MB / 0.4925 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.1715, allocations: 12 kB / 0.4925 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1715, allocations: 0 / 0.4925 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.1715, allocations: 3.984 kB / 0.4925 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006712/0.1782, allocations: 3.142 MB / 0.4956 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.1783, allocations: 0 / 0.4956 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004621/0.1787, allocations: 103.9 kB / 0.4957 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/0.1807, allocations: 0.5316 MB / 0.4962 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.255e-05/0.1808, allocations: 19.98 kB / 0.4962 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.1826, allocations: 1.158 MB / 0.4973 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.1826, allocations: 4 kB / 0.4973 GB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004937/0.1876, allocations: 1.994 MB / 0.4993 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006162/0.1882, allocations: 287.9 kB / 0.4996 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.1886, allocations: 16 kB / 0.4996 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007449/0.1893, allocations: 51.95 kB / 0.4996 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.1895, allocations: 68.91 kB / 0.4997 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.1896, allocations: 31.98 kB / 0.4997 GB, free: 3.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002137/0.1918, allocations: 1.285 MB / 0.501 GB, free: 2.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1918, allocations: 0 / 0.501 GB, free: 2.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009284/0.1927, allocations: 239.8 kB / 0.5012 GB, free: 1.957 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.2058/0.3985, allocations: 2.739 MB / 0.5039 GB, free: 46.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003146/0.4017, allocations: 1.099 MB / 0.5049 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.4017, allocations: 2.125 kB / 0.505 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/0.4037, allocations: 0.6775 MB / 0.5056 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.0009071/0.4046, allocations: 120.1 kB / 0.5057 GB, free: 46.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02592/0.4306, allocations: 12.98 MB / 0.5184 GB, free: 41.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009192/0.4315, allocations: 1.174 MB / 0.5196 GB, free: 40.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005106/0.4321, allocations: 166.9 kB / 0.5197 GB, free: 40.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/0.4326, allocations: 429.9 kB / 0.5201 GB, free: 40.02 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4327, allocations: 0 / 0.5201 GB, free: 40.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05715/0.4898, allocations: 27.11 MB / 0.5466 GB, free: 16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.03, allocations: 7.688 kB / 0.5466 GB, free: 15.99 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)