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.001057/0.001057, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008826/0.0008824, allocations: 80.52 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1752/0.1752, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.699e-05, allocations: 0 / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1204, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4579/0.5784, allocations: 103.5 MB / 0.5571 GB, free: 7.25 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5788, allocations: 87.94 kB / 0.5572 GB, free: 7.164 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1687/0.7475, allocations: 66.94 MB / 0.6226 GB, free: 3.523 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7475, allocations: 0 / 0.6226 GB, free: 3.523 MB / 459.1 MB Notification: Performance of Transformations before backend: time 7.032e-05/0.7476, allocations: 35.94 kB / 0.6226 GB, free: 3.488 MB / 459.1 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.003084/0.7507, allocations: 1.403 MB / 0.624 GB, free: 2.027 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.7508, allocations: 8.031 kB / 0.624 GB, free: 2.02 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003829/0.7546, allocations: 493.8 kB / 0.6245 GB, free: 1.535 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.7561, allocations: 0.6951 MB / 0.6252 GB, free: 0.7969 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.7562, allocations: 35.94 kB / 0.6252 GB, free: 0.7617 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/0.7563, allocations: 79.94 kB / 0.6253 GB, free: 0.6836 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002016/0.7584, allocations: 1.149 MB / 0.6264 GB, free: 15.53 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.7607, allocations: 1.362 MB / 0.6277 GB, free: 14.11 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.919e-05/0.7607, allocations: 3.984 kB / 0.6277 GB, free: 14.11 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.7608, allocations: 3.984 kB / 0.6277 GB, free: 14.1 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/0.7612, allocations: 122.1 kB / 0.6278 GB, free: 13.98 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007868/0.769, allocations: 4.735 MB / 0.6325 GB, free: 9.133 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.7707, allocations: 1.164 MB / 0.6336 GB, free: 7.953 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.7716, allocations: 0.7093 MB / 0.6343 GB, free: 7.238 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.999e-05/0.7717, allocations: 17.3 kB / 0.6343 GB, free: 7.219 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/0.7728, allocations: 0.7389 MB / 0.635 GB, free: 6.461 MB / 475.1 MB Notification: Performance of pre-optimization done (n=126): time 3.066e-06/0.7729, allocations: 0 / 0.635 GB, free: 6.461 MB / 475.1 MB Notification: Performance of matching and sorting (n=137): time 0.008329/0.7812, allocations: 4.477 MB / 0.6394 GB, free: 1.883 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.7813, allocations: 124.1 kB / 0.6395 GB, free: 1.738 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006107/0.7819, allocations: 446.3 kB / 0.64 GB, free: 1.301 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-05/0.782, allocations: 33.69 kB / 0.64 GB, free: 1.262 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000432/0.7825, allocations: 480.2 kB / 0.6404 GB, free: 0.7852 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.7829, allocations: 453.2 kB / 0.6409 GB, free: 344 kB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.385e-05/0.7829, allocations: 4.031 kB / 0.6409 GB, free: 340 kB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.2935/1.076, allocations: 399.3 kB / 0.6413 GB, free: 115.6 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/1.078, allocations: 0.5146 MB / 0.6418 GB, free: 115.6 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/1.079, allocations: 0.6668 MB / 0.6424 GB, free: 115.4 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/1.081, allocations: 0.616 MB / 0.643 GB, free: 115.4 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/1.081, allocations: 1.062 kB / 0.643 GB, free: 115.4 MB / 475.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004246/1.085, allocations: 1.966 MB / 0.6449 GB, free: 115.3 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002607/1.085, allocations: 1.169 MB / 0.6461 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/1.085, allocations: 3.609 kB / 0.6461 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.087, allocations: 0.6484 MB / 0.6467 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/1.088, allocations: 227.9 kB / 0.6469 GB, free: 114.1 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/1.09, allocations: 1.622 MB / 0.6485 GB, free: 113.6 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/1.092, allocations: 80.19 kB / 0.6486 GB, free: 113.6 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/1.092, allocations: 46.52 kB / 0.6486 GB, free: 113.6 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/1.092, allocations: 6.531 kB / 0.6486 GB, free: 113.6 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003871/1.096, allocations: 1.807 MB / 0.6504 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/1.096, allocations: 2.438 kB / 0.6504 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/1.098, allocations: 0.6377 MB / 0.651 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009907/1.099, allocations: 232.4 kB / 0.6513 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009008/1.108, allocations: 5.398 MB / 0.6565 GB, free: 112 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/1.109, allocations: 79.73 kB / 0.6566 GB, free: 112 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/1.109, allocations: 42.72 kB / 0.6566 GB, free: 112 MB / 475.1 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.0003981/1.109, allocations: 125.1 kB / 0.6568 GB, free: 111.9 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003605/1.113, allocations: 1.704 MB / 0.6584 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/1.113, allocations: 93.67 kB / 0.6585 GB, free: 111.7 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/1.117, allocations: 1.897 MB / 0.6604 GB, free: 111.6 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/1.117, allocations: 14.72 kB / 0.6604 GB, free: 111.6 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/1.117, allocations: 3.281 kB / 0.6604 GB, free: 111.6 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/1.117, allocations: 8.609 kB / 0.6604 GB, free: 111.6 MB / 475.1 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.006354/1.124, allocations: 3.539 MB / 0.6639 GB, free: 111 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/1.124, allocations: 2.969 kB / 0.6639 GB, free: 111 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009331/1.125, allocations: 222.7 kB / 0.6641 GB, free: 111 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/1.126, allocations: 490.3 kB / 0.6645 GB, free: 111 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.831e-05/1.126, allocations: 13.92 kB / 0.6645 GB, free: 111 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007426/1.134, allocations: 6.331 MB / 0.6707 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.134, allocations: 3.812 kB / 0.6707 GB, free: 108.2 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/1.138, allocations: 2.883 MB / 0.6735 GB, free: 107.7 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/1.139, allocations: 282.7 kB / 0.6738 GB, free: 107.5 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/1.139, allocations: 8.156 kB / 0.6738 GB, free: 107.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/1.139, allocations: 74.22 kB / 0.6739 GB, free: 107.5 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/1.14, allocations: 126.6 kB / 0.674 GB, free: 107.5 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/1.14, allocations: 41.58 kB / 0.6741 GB, free: 107.5 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0003969/1.14, allocations: 340.8 kB / 0.6744 GB, free: 107.4 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.14, allocations: 2.062 kB / 0.6744 GB, free: 107.4 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001771/1.142, allocations: 0.572 MB / 0.6749 GB, free: 107.4 MB / 475.1 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.00414/1.146, allocations: 4.135 MB / 0.679 GB, free: 105.6 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004192/1.15, allocations: 2.661 MB / 0.6816 GB, free: 104.5 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.15, allocations: 0 / 0.6816 GB, free: 104.5 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/1.152, allocations: 1.171 MB / 0.6827 GB, free: 103.9 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009791/1.153, allocations: 130.6 kB / 0.6828 GB, free: 103.9 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/1.157, allocations: 2.351 MB / 0.6851 GB, free: 102.9 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007297/1.158, allocations: 1.274 MB / 0.6864 GB, free: 102.2 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0009364/1.159, allocations: 336.9 kB / 0.6867 GB, free: 102.1 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/1.159, allocations: 429.2 kB / 0.6871 GB, free: 101.8 MB / 475.1 MB Notification: Performance of SimCode: time 1.182e-06/1.159, allocations: 0 / 0.6871 GB, free: 101.8 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05764/1.217, allocations: 29.37 MB / 0.7158 GB, free: 97.74 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/1.217, allocations: 154.2 kB / 0.7159 GB, free: 97.54 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.993/4.211, allocations: 3.938 kB / 0.716 GB, free: 97.54 MB / 475.1 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