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/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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008484/0.0008485, allocations: 94.56 kB / 16.3 MB, free: 5.996 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.0009312/0.0009312, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.32/1.32, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3052/0.3052, allocations: 38.08 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.0002921, allocations: 8 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 59.16 MB / 459.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007261/0.2673, allocations: 8.439 MB / 467.7 MB, free: 24.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006435/0.2737, allocations: 4.997 MB / 472.7 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2751, allocations: 38.41 kB / 472.7 MB, free: 21.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000555/0.2756, allocations: 190.1 kB / 472.9 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00307/0.2787, allocations: 0.8129 MB / 473.7 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.2805, allocations: 474 kB / 474.2 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002093/0.2826, allocations: 0.9528 MB / 475.1 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002387/0.285, allocations: 1.416 MB / 476.5 MB, free: 18.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.2865, allocations: 0.5505 MB / 477.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.2877, allocations: 0.5206 MB / 477.6 MB, free: 18.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.2879, allocations: 50.53 kB / 477.6 MB, free: 18.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003231/0.2911, allocations: 0.8 MB / 478.4 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004735/0.2916, allocations: 474.4 kB / 478.9 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003291/0.2919, allocations: 246.8 kB / 479.1 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002188/0.2941, allocations: 1.436 MB / 480.6 MB, free: 16.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2941, allocations: 0 / 480.6 MB, free: 16.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2942, allocations: 1.125 kB / 480.6 MB, free: 16.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.576e-05/0.2942, allocations: 0 / 480.6 MB, free: 16.82 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: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003244/0.2974, allocations: 1.46 MB / 482 MB, free: 15.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.2975, allocations: 8.875 kB / 482.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002476/0.2978, allocations: 176.2 kB / 482.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003897/0.3017, allocations: 0.5222 MB / 482.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.3031, allocations: 0.6444 MB / 483.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-05/0.3032, allocations: 85.91 kB / 483.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.3034, allocations: 116.4 kB / 483.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002703/0.3061, allocations: 1.597 MB / 485.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.3062, allocations: 6.281 kB / 485.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.3063, allocations: 46.64 kB / 485.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.3064, allocations: 88.16 kB / 485.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.3086, allocations: 1.652 MB / 487 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006142/0.3148, allocations: 4.988 MB / 492 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.3164, allocations: 1.359 MB / 493.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.93e-05/0.3165, allocations: 24.92 kB / 493.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3176, allocations: 0.8412 MB / 494.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=126): time 2.835e-06/0.3176, allocations: 0 / 494.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01226/0.3299, allocations: 6.377 MB / 0.4888 GB, free: 14.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/0.33, allocations: 132 kB / 0.489 GB, free: 14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.3307, allocations: 0.5626 MB / 0.4895 GB, free: 13.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.316e-05/0.3308, allocations: 45.7 kB / 0.4896 GB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.3312, allocations: 480.3 kB / 0.49 GB, free: 12.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003972/0.3316, allocations: 469.2 kB / 0.4905 GB, free: 12.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.794e-05/0.3316, allocations: 28 kB / 0.4905 GB, free: 12.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3318, allocations: 398.7 kB / 0.4909 GB, free: 12.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/0.3329, allocations: 0.6272 MB / 0.4915 GB, free: 11.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.3342, allocations: 0.7753 MB / 0.4922 GB, free: 10.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.3354, allocations: 0.7537 MB / 0.493 GB, free: 9.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3354, allocations: 0 / 0.493 GB, free: 9.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003979/0.3394, allocations: 2.115 MB / 0.495 GB, free: 7.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004926/0.3399, allocations: 1.172 MB / 0.4962 GB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3399, allocations: 0 / 0.4962 GB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.3412, allocations: 469.3 kB / 0.4966 GB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.3423, allocations: 263.6 kB / 0.4969 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00857/0.3509, allocations: 6.423 MB / 0.5032 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.3519, allocations: 91.97 kB / 0.5032 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.352, allocations: 51.92 kB / 0.5033 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.352, allocations: 4 kB / 0.5033 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003362/0.3554, allocations: 1.915 MB / 0.5052 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3554, allocations: 4 kB / 0.5052 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.3565, allocations: 438.3 kB / 0.5056 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009874/0.3575, allocations: 259.6 kB / 0.5058 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007201/0.3647, allocations: 6.186 MB / 0.5119 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.3658, allocations: 79.92 kB / 0.5119 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.956e-05/0.3659, allocations: 56.03 kB / 0.512 GB, free: 5.617 MB / 382.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 () * 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.0007058/0.3666, allocations: 424.8 kB / 0.5124 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.3667, allocations: 94.88 kB / 0.5125 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004095/0.3708, allocations: 2.188 MB / 0.5146 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3709, allocations: 16 kB / 0.5146 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3709, allocations: 0 / 0.5146 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.3709, allocations: 7.969 kB / 0.5147 GB, free: 2.863 MB / 382.1 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.006769/0.3777, allocations: 3.971 MB / 0.5185 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.3777, allocations: 0 / 0.5185 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008766/0.3786, allocations: 212 kB / 0.5187 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.3801, allocations: 0.5132 MB / 0.5192 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.557e-05/0.3802, allocations: 31.98 kB / 0.5193 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008758/0.389, allocations: 6.698 MB / 0.5258 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.389, allocations: 11.89 kB / 0.5258 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005441/0.3945, allocations: 3.224 MB / 0.529 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006334/0.3952, allocations: 287.8 kB / 0.5292 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.3953, allocations: 35.98 kB / 0.5293 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007314/0.396, allocations: 79.88 kB / 0.5294 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.3963, allocations: 125.1 kB / 0.5295 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.144e-05/0.3964, allocations: 47.98 kB / 0.5295 GB, free: 3.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004938/0.3969, allocations: 395 kB / 0.5299 GB, free: 2.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3969, allocations: 0 / 0.5299 GB, free: 2.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002056/0.399, allocations: 0.6602 MB / 0.5305 GB, free: 2.047 MB / 398.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) * 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.005698/0.4047, allocations: 4.487 MB / 0.5349 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005315/0.4101, allocations: 3.343 MB / 0.5382 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.4101, allocations: 0 / 0.5382 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002056/0.4122, allocations: 1.327 MB / 0.5395 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008635/0.413, allocations: 153.1 kB / 0.5396 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.425, allocations: 9.748 MB / 0.5491 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008922/0.4259, allocations: 1.283 MB / 0.5504 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008631/0.4268, allocations: 299 kB / 0.5507 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005798/0.4274, allocations: 439.3 kB / 0.5511 GB, free: 12.48 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4274, allocations: 0 / 0.5511 GB, free: 12.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2101/0.6375, allocations: 29.26 MB / 0.5797 GB, free: 108.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.6378, allocations: 223.8 kB / 0.5799 GB, free: 108.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.486/3.124, allocations: 0 / 0.5799 GB, free: 108.4 MB / 446.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) Environment - environmentSimulation: 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