Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.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.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled",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.001026/0.001026, allocations: 179.5 kB / 16.39 MB, free: 5.766 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.171/1.171, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008311/0.0008309, allocations: 91.81 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1527/0.1527, allocations: 38.06 MB / 357.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2198, allocations: 56.32 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3408, allocations: 104.3 MB / 0.571 GB, free: 14.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3411, allocations: 87.95 kB / 0.5711 GB, free: 14.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1539/0.495, allocations: 67.64 MB / 0.6371 GB, free: 9.656 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.495, allocations: 0 / 0.6371 GB, free: 9.656 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.108e-05/0.4951, allocations: 24 kB / 0.6372 GB, free: 9.633 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003327/0.4984, allocations: 1.511 MB / 0.6386 GB, free: 8.059 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.4985, allocations: 11.97 kB / 0.6386 GB, free: 8.047 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003803/0.4989, allocations: 181.5 kB / 0.6388 GB, free: 7.859 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003764/0.5026, allocations: 0.49 MB / 0.6393 GB, free: 7.367 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.5043, allocations: 0.6912 MB / 0.64 GB, free: 6.633 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.455e-05/0.5043, allocations: 86.11 kB / 0.6401 GB, free: 6.547 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002797/0.5046, allocations: 115.9 kB / 0.6402 GB, free: 6.434 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002829/0.5075, allocations: 1.58 MB / 0.6417 GB, free: 4.793 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.5075, allocations: 4 kB / 0.6417 GB, free: 4.789 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.5077, allocations: 47.97 kB / 0.6418 GB, free: 4.742 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/0.5079, allocations: 118.2 kB / 0.6419 GB, free: 4.625 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.5108, allocations: 1.605 MB / 0.6434 GB, free: 3.012 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.178/0.6888, allocations: 4.932 MB / 0.6483 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.691, allocations: 1.349 MB / 0.6496 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.113e-05/0.6911, allocations: 21.17 kB / 0.6496 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001446/0.6926, allocations: 0.8319 MB / 0.6504 GB, free: 111.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 4.518e-06/0.6926, allocations: 0 / 0.6504 GB, free: 111.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.01223/0.7049, allocations: 5.934 MB / 0.6562 GB, free: 110.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.7049, allocations: 119.4 kB / 0.6563 GB, free: 110.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007231/0.7057, allocations: 0.5027 MB / 0.6568 GB, free: 110.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.7058, allocations: 50.52 kB / 0.6568 GB, free: 110.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.7061, allocations: 480.6 kB / 0.6573 GB, free: 110.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.7065, allocations: 467.3 kB / 0.6578 GB, free: 110 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.318e-05/0.7066, allocations: 24.84 kB / 0.6578 GB, free: 110 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.7068, allocations: 409.2 kB / 0.6582 GB, free: 109.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.7079, allocations: 0.6035 MB / 0.6588 GB, free: 109.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.7091, allocations: 0.7559 MB / 0.6595 GB, free: 109.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.7103, allocations: 0.7278 MB / 0.6602 GB, free: 109.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.7103, allocations: 4.094 kB / 0.6602 GB, free: 109.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003754/0.714, allocations: 2.04 MB / 0.6622 GB, free: 109.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002192/0.7143, allocations: 1.176 MB / 0.6633 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.7143, allocations: 3.078 kB / 0.6634 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.7156, allocations: 469.5 kB / 0.6638 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.7168, allocations: 272.4 kB / 0.6641 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005647/0.7224, allocations: 5.047 MB / 0.669 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.7235, allocations: 107.4 kB / 0.6691 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.7236, allocations: 46.64 kB / 0.6691 GB, free: 106 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.7237, allocations: 7.656 kB / 0.6691 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003133/0.7268, allocations: 1.869 MB / 0.671 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.7268, allocations: 6.875 kB / 0.671 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.7279, allocations: 437.8 kB / 0.6714 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.729, allocations: 267.3 kB / 0.6716 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006173/0.7352, allocations: 6.184 MB / 0.6777 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.7362, allocations: 99.48 kB / 0.6778 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.7363, allocations: 48.06 kB / 0.6778 GB, free: 103 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0006789/0.737, allocations: 426.2 kB / 0.6782 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.7372, allocations: 103.4 kB / 0.6783 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003528/0.7407, allocations: 2.159 MB / 0.6804 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.7407, allocations: 18.03 kB / 0.6805 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7407, allocations: 3.531 kB / 0.6805 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.7407, allocations: 9.281 kB / 0.6805 GB, free: 102.6 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005687/0.7464, allocations: 3.952 MB / 0.6843 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.7465, allocations: 288 / 0.6843 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000854/0.7473, allocations: 229 kB / 0.6845 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.7487, allocations: 0.5048 MB / 0.685 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.012e-05/0.7488, allocations: 35.53 kB / 0.6851 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00673/0.7556, allocations: 6.705 MB / 0.6916 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.7556, allocations: 11.31 kB / 0.6916 GB, free: 96.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/0.7601, allocations: 3.182 MB / 0.6947 GB, free: 95.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000548/0.7607, allocations: 293.3 kB / 0.695 GB, free: 94.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.7608, allocations: 30.27 kB / 0.6951 GB, free: 94.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007076/0.7615, allocations: 96.77 kB / 0.6951 GB, free: 94.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.7618, allocations: 124.7 kB / 0.6953 GB, free: 94.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.483e-05/0.7619, allocations: 39.27 kB / 0.6953 GB, free: 94.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003857/0.7623, allocations: 401.5 kB / 0.6957 GB, free: 94.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7623, allocations: 0 / 0.6957 GB, free: 94.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001697/0.764, allocations: 0.6855 MB / 0.6964 GB, free: 94.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004569/0.7686, allocations: 4.487 MB / 0.7007 GB, free: 91.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00401/0.7726, allocations: 3.152 MB / 0.7038 GB, free: 90.38 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7726, allocations: 192 / 0.7038 GB, free: 90.38 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.7743, allocations: 1.315 MB / 0.7051 GB, free: 89.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007909/0.7751, allocations: 155.5 kB / 0.7052 GB, free: 89.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009441/0.7845, allocations: 9.709 MB / 0.7147 GB, free: 84.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.7852, allocations: 1.286 MB / 0.716 GB, free: 83.26 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007866/0.786, allocations: 293.9 kB / 0.7163 GB, free: 83.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.7865, allocations: 435.7 kB / 0.7167 GB, free: 82.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7865, allocations: 0 / 0.7167 GB, free: 82.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.8252, allocations: 29.03 MB / 0.745 GB, free: 69.12 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001406/0.8253, allocations: 220.8 kB / 0.7452 GB, free: 68.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.507/3.332, allocations: 0 / 0.7452 GB, free: 68.88 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat does not exist to compare? outputFormat=mat