Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001002, allocations: 181.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008407/0.0008406, allocations: 91.12 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1592/0.1592, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2374, allocations: 56.33 MB / 480.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.3495, allocations: 94.67 MB / 0.5616 GB, free: 7.742 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001713/0.3512, allocations: 0.8627 MB / 0.5624 GB, free: 6.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0289/0.3802, allocations: 11.6 MB / 0.5738 GB, free: 11.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3802, allocations: 0 / 0.5738 GB, free: 11.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.05e-05/0.3802, allocations: 12 kB / 0.5738 GB, free: 11.24 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.001658/0.3819, allocations: 0.9785 MB / 0.5747 GB, free: 10.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.382, allocations: 8.031 kB / 0.5747 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.3821, allocations: 74.48 kB / 0.5748 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.3822, allocations: 63.25 kB / 0.5749 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000803/0.383, allocations: 0.5075 MB / 0.5754 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.383, allocations: 32.98 kB / 0.5754 GB, free: 9.469 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.3831, allocations: 36 kB / 0.5754 GB, free: 9.434 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.3842, allocations: 0.5848 MB / 0.576 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3842, allocations: 0 / 0.576 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.3843, allocations: 19.98 kB / 0.576 GB, free: 8.773 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3843, allocations: 15.95 kB / 0.576 GB, free: 8.758 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3856, allocations: 0.6258 MB / 0.5767 GB, free: 8.133 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.3878, allocations: 2.143 MB / 0.5787 GB, free: 5.898 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.3895, allocations: 0.7054 MB / 0.5794 GB, free: 5.156 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.3895, allocations: 11.98 kB / 0.5795 GB, free: 5.145 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000794/0.3903, allocations: 411.3 kB / 0.5798 GB, free: 4.719 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 1.643e-06/0.3904, allocations: 4 kB / 0.5798 GB, free: 4.715 MB / 410.7 MB Notification: Performance of matching and sorting (n=37): time 0.002038/0.3924, allocations: 0.873 MB / 0.5807 GB, free: 3.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.3925, allocations: 192 kB / 0.5809 GB, free: 3.605 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005561/0.3931, allocations: 498 kB / 0.5814 GB, free: 3.109 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.3931, allocations: 45.64 kB / 0.5814 GB, free: 3.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3933, allocations: 271.3 kB / 0.5817 GB, free: 2.793 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3934, allocations: 126.3 kB / 0.5818 GB, free: 2.668 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.3935, allocations: 4 kB / 0.5818 GB, free: 2.664 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3936, allocations: 374.8 kB / 0.5821 GB, free: 2.289 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.3942, allocations: 260.7 kB / 0.5824 GB, free: 2.035 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000688/0.3949, allocations: 386 kB / 0.5828 GB, free: 1.609 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.3956, allocations: 346.6 kB / 0.5831 GB, free: 1.262 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3956, allocations: 0 / 0.5831 GB, free: 1.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001558/0.3972, allocations: 0.7954 MB / 0.5839 GB, free: 460 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004848/0.3977, allocations: 1.279 MB / 0.5851 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3977, allocations: 4 kB / 0.5851 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3977, allocations: 4 kB / 0.5851 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/0.3982, allocations: 123.8 kB / 0.5852 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.3983, allocations: 15.89 kB / 0.5853 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.3987, allocations: 95.53 kB / 0.5853 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.3988, allocations: 16 kB / 0.5854 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.595e-06/0.3988, allocations: 6.031 kB / 0.5854 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001454/0.4003, allocations: 0.7133 MB / 0.5861 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4003, allocations: 4 kB / 0.5861 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.451e-06/0.4003, allocations: 4 kB / 0.5861 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.4007, allocations: 116.2 kB / 0.5862 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4008, allocations: 7.938 kB / 0.5862 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/0.4012, allocations: 83.62 kB / 0.5863 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.4012, allocations: 23.92 kB / 0.5863 GB, free: 13.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.loadDispatcher.data.nextTimeEvent,$whenCondition3,loadDispatcher.data.nextTimeEvent,$PRE.loadDispatcher.data.nextTimeEventScaled,loadDispatcher.data.nextTimeEventScaled,$PRE.loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.T_start,$PRE.loadDispatcher.hydroDaily.count,loadDispatcher.hydroDaily.count,$whenCondition1,$PRE.frequency.T_start,frequency.T_start,$PRE.frequency.count,frequency.count,system.initime,loadDispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003015/0.4015, allocations: 299.2 kB / 0.5866 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.723e-05/0.4016, allocations: 59.25 kB / 0.5866 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009813/0.4026, allocations: 487.2 kB / 0.5871 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4026, allocations: 4 kB / 0.5871 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4027, allocations: 4 kB / 0.5871 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4027, allocations: 7.984 kB / 0.5871 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006117/0.4033, allocations: 0.5906 MB / 0.5877 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4033, allocations: 7.953 kB / 0.5877 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/0.4038, allocations: 107.9 kB / 0.5878 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.4038, allocations: 4 kB / 0.5878 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.4038, allocations: 12 kB / 0.5878 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4038, allocations: 0 / 0.5878 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.4039, allocations: 4 kB / 0.5878 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.406, allocations: 1.102 MB / 0.5889 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.4063, allocations: 196.3 kB / 0.5891 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.854e-05/0.4064, allocations: 20 kB / 0.5891 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.4068, allocations: 59.94 kB / 0.5892 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.4069, allocations: 59.88 kB / 0.5892 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.407, allocations: 19.98 kB / 0.5892 GB, free: 10.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004692/0.4075, allocations: 390.8 kB / 0.5896 GB, free: 10.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4075, allocations: 0 / 0.5896 GB, free: 10.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006632/0.4081, allocations: 211.9 kB / 0.5898 GB, free: 10.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (loadDispatcher.secondaryControl.I.y) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled,loadDispatcher.hydroDaily.T_start,loadDispatcher.hydroDaily.count,$whenCondition1,frequency.T_start,frequency.count,system.initime) * Number of discrete states: 4 (frequency.count,loadDispatcher.hydroDaily.count,loadDispatcher.data.nextTimeEvent,loadDispatcher.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003543/0.4117, allocations: 2.229 MB / 0.592 GB, free: 7.887 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.414, allocations: 1.151 MB / 0.5931 GB, free: 6.688 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.414, allocations: 0 / 0.5931 GB, free: 6.688 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.4148, allocations: 335.8 kB / 0.5934 GB, free: 6.359 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.4154, allocations: 110.2 kB / 0.5935 GB, free: 6.254 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00709/0.4225, allocations: 5.565 MB / 0.599 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006329/0.4232, allocations: 0.8795 MB / 0.5998 GB, free: 15.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005466/0.4237, allocations: 124.3 kB / 0.5999 GB, free: 15.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003626/0.4241, allocations: 207.3 kB / 0.6001 GB, free: 15.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4241, allocations: 0 / 0.6001 GB, free: 15.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.4513, allocations: 12.61 MB / 0.6125 GB, free: 2.695 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.4516, allocations: 229.5 kB / 0.6127 GB, free: 2.457 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.215/2.666, allocations: 4 kB / 0.6127 GB, free: 2.453 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_LoadDispatcherTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.LoadDispatcherTest_res.mat does not exist to compare? outputFormat=mat