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.002084/0.002084, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.813/1.813, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008557/0.0008557, allocations: 82.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1551/0.1551, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.411e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 56.31 MB / 474.1 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4783/0.5875, allocations: 104.2 MB / 0.5648 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5879, allocations: 90.12 kB / 0.5649 GB, free: 15.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1649/0.7528, allocations: 67.26 MB / 0.6306 GB, free: 2.754 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7528, allocations: 3.938 kB / 0.6306 GB, free: 2.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.473e-05/0.7529, allocations: 31.92 kB / 0.6306 GB, free: 2.719 MB / 426.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.003086/0.756, allocations: 1.403 MB / 0.632 GB, free: 1.258 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.7561, allocations: 12.03 kB / 0.632 GB, free: 1.246 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002566/0.7563, allocations: 177.5 kB / 0.6321 GB, free: 1.062 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003831/0.7602, allocations: 497.8 kB / 0.6326 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.7618, allocations: 0.6912 MB / 0.6333 GB, free: 15.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.352e-05/0.7619, allocations: 86.11 kB / 0.6334 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000222/0.7621, allocations: 116 kB / 0.6335 GB, free: 15.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/0.7649, allocations: 1.507 MB / 0.635 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.139e-05/0.7649, allocations: 7.906 kB / 0.635 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.7651, allocations: 40 kB / 0.635 GB, free: 14.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003348/0.7654, allocations: 122.2 kB / 0.6351 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/0.768, allocations: 1.469 MB / 0.6365 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00896/0.777, allocations: 4.949 MB / 0.6414 GB, free: 7.344 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.7789, allocations: 1.216 MB / 0.6426 GB, free: 6.105 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.78, allocations: 0.7392 MB / 0.6433 GB, free: 5.359 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.261e-05/0.7801, allocations: 20.97 kB / 0.6433 GB, free: 5.336 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.7814, allocations: 0.7788 MB / 0.6441 GB, free: 4.543 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.037e-06/0.7814, allocations: 0 / 0.6441 GB, free: 4.543 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.009382/0.7908, allocations: 4.761 MB / 0.6487 GB, free: 15.68 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.7909, allocations: 120.1 kB / 0.6488 GB, free: 15.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008513/0.7918, allocations: 0.4995 MB / 0.6493 GB, free: 15.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.7919, allocations: 49.7 kB / 0.6494 GB, free: 14.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000488/0.7924, allocations: 476.3 kB / 0.6498 GB, free: 14.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004956/0.7929, allocations: 473.2 kB / 0.6503 GB, free: 14.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/0.793, allocations: 24 kB / 0.6503 GB, free: 14.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.7932, allocations: 410.7 kB / 0.6507 GB, free: 13.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008952/0.7941, allocations: 0.5415 MB / 0.6512 GB, free: 13.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.7952, allocations: 0.7017 MB / 0.6519 GB, free: 12.31 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.7963, allocations: 0.6742 MB / 0.6526 GB, free: 11.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.7963, allocations: 4 kB / 0.6526 GB, free: 11.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004467/0.8008, allocations: 2.107 MB / 0.6546 GB, free: 9.504 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005772/0.8014, allocations: 1.168 MB / 0.6558 GB, free: 8.242 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.8014, allocations: 4 kB / 0.6558 GB, free: 8.238 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/0.8036, allocations: 0.7139 MB / 0.6565 GB, free: 7.523 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.8047, allocations: 231.6 kB / 0.6567 GB, free: 7.297 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.807, allocations: 1.57 MB / 0.6582 GB, free: 5.699 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.8082, allocations: 111.9 kB / 0.6583 GB, free: 5.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/0.8085, allocations: 47.98 kB / 0.6584 GB, free: 5.543 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.8085, allocations: 4 kB / 0.6584 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004212/0.8127, allocations: 1.974 MB / 0.6603 GB, free: 3.555 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.8127, allocations: 4 kB / 0.6603 GB, free: 3.551 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/0.815, allocations: 0.7103 MB / 0.661 GB, free: 2.836 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.8162, allocations: 227.7 kB / 0.6612 GB, free: 2.613 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.8263, allocations: 5.695 MB / 0.6668 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.8277, allocations: 103.8 kB / 0.6669 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002826/0.828, allocations: 51.92 kB / 0.6669 GB, free: 12.61 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 57} Notification: Performance of prepare postOptimizeDAE: time 0.0005214/0.8285, allocations: 168.8 kB / 0.6671 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.8288, allocations: 94.88 kB / 0.6672 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004488/0.8333, allocations: 2.032 MB / 0.6692 GB, free: 10.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/0.8334, allocations: 16 kB / 0.6692 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.8334, allocations: 0 / 0.6692 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.8335, allocations: 7.969 kB / 0.6692 GB, free: 10.26 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008764/0.8422, allocations: 3.822 MB / 0.6729 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.768e-05/0.8423, allocations: 4 kB / 0.6729 GB, free: 6.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.8434, allocations: 223.7 kB / 0.6731 GB, free: 6.102 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.845, allocations: 497.6 kB / 0.6736 GB, free: 5.609 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/0.8452, allocations: 31.98 kB / 0.6736 GB, free: 5.578 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.8554, allocations: 6.506 MB / 0.68 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.8555, allocations: 8 kB / 0.68 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/0.862, allocations: 2.998 MB / 0.6829 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009051/0.8629, allocations: 291.7 kB / 0.6832 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.8632, allocations: 35.98 kB / 0.6832 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.8643, allocations: 83.91 kB / 0.6833 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.8647, allocations: 129 kB / 0.6834 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.8648, allocations: 44 kB / 0.6835 GB, free: 11.06 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000678/0.8655, allocations: 391.2 kB / 0.6839 GB, free: 10.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8655, allocations: 0 / 0.6839 GB, free: 10.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002565/0.8681, allocations: 0.66 MB / 0.6845 GB, free: 10.02 MB / 490.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) * 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.006258/0.8743, allocations: 4.285 MB / 0.6887 GB, free: 5.633 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005558/0.88, allocations: 2.776 MB / 0.6914 GB, free: 2.824 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.88, allocations: 0 / 0.6914 GB, free: 2.824 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/0.8824, allocations: 1.246 MB / 0.6926 GB, free: 1.547 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.8836, allocations: 155.8 kB / 0.6928 GB, free: 1.395 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/0.8898, allocations: 2.472 MB / 0.6952 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.8912, allocations: 1.276 MB / 0.6964 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001265/0.8924, allocations: 338.9 kB / 0.6968 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006855/0.8931, allocations: 427.3 kB / 0.6972 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of SimCode: time 9.41e-07/0.8932, allocations: 4 kB / 0.6972 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3612/1.254, allocations: 30.96 MB / 0.7274 GB, free: 139.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.255, allocations: 194.1 kB / 0.7276 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.168/4.423, allocations: 0 / 0.7276 GB, free: 139.4 MB / 0.4948 GB (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