Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_cpp_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.001468/0.001468, allocations: 185.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.3 MB / 213.7 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 86.7 kB / 261.8 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2597/0.2597, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.268e-05/3.287e-05, allocations: 4 kB / 409.9 MB, free: 35.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1614, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/0.6856, allocations: 103.5 MB / 0.5564 GB, free: 8.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/0.686, allocations: 90.23 kB / 0.5565 GB, free: 8.297 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2715/0.9575, allocations: 66.94 MB / 0.6219 GB, free: 12.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.9575, allocations: 0 / 0.6219 GB, free: 12.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.996e-05/0.9576, allocations: 24 kB / 0.6219 GB, free: 12.64 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.005232/0.9629, allocations: 1.403 MB / 0.6233 GB, free: 11.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.9629, allocations: 12.03 kB / 0.6233 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006318/0.9693, allocations: 493.7 kB / 0.6238 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002653/0.972, allocations: 0.6912 MB / 0.6244 GB, free: 9.949 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.076e-05/0.9721, allocations: 36 kB / 0.6245 GB, free: 9.914 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003344/0.9724, allocations: 75.95 kB / 0.6246 GB, free: 9.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003691/0.9761, allocations: 1.156 MB / 0.6257 GB, free: 8.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004224/0.9804, allocations: 1.358 MB / 0.627 GB, free: 7.266 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.048e-05/0.9805, allocations: 7.938 kB / 0.627 GB, free: 7.258 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001671/0.9807, allocations: 4 kB / 0.627 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005472/0.9812, allocations: 118.2 kB / 0.6271 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.9961, allocations: 4.743 MB / 0.6318 GB, free: 2.277 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.9992, allocations: 1.168 MB / 0.6329 GB, free: 1.094 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/1.001, allocations: 0.7015 MB / 0.6336 GB, free: 396 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/1.001, allocations: 25.22 kB / 0.6336 GB, free: 368 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002023/1.003, allocations: 0.7351 MB / 0.6343 GB, free: 15.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 4.498e-06/1.003, allocations: 0 / 0.6343 GB, free: 15.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.01582/1.019, allocations: 4.481 MB / 0.6387 GB, free: 11.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.019, allocations: 120.1 kB / 0.6388 GB, free: 10.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009881/1.02, allocations: 446.4 kB / 0.6392 GB, free: 10.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000349/1.021, allocations: 29.7 kB / 0.6393 GB, free: 10.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000584/1.021, allocations: 0.4948 MB / 0.6398 GB, free: 9.906 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008862/1.022, allocations: 445.2 kB / 0.6402 GB, free: 9.465 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/1.022, allocations: 4 kB / 0.6402 GB, free: 9.461 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002284/1.023, allocations: 366.8 kB / 0.6405 GB, free: 9.094 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/1.024, allocations: 0.518 MB / 0.641 GB, free: 8.574 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/1.026, allocations: 0.6675 MB / 0.6417 GB, free: 7.867 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/1.028, allocations: 0.6153 MB / 0.6423 GB, free: 7.254 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/1.028, allocations: 3.938 kB / 0.6423 GB, free: 7.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007308/1.035, allocations: 1.927 MB / 0.6442 GB, free: 5.309 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005951/1.036, allocations: 1.164 MB / 0.6453 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/1.036, allocations: 4 kB / 0.6453 GB, free: 4.043 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003882/1.04, allocations: 0.6475 MB / 0.646 GB, free: 3.395 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/1.042, allocations: 235.6 kB / 0.6462 GB, free: 3.164 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004205/1.046, allocations: 1.625 MB / 0.6478 GB, free: 1.512 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/1.049, allocations: 79.89 kB / 0.6478 GB, free: 1.434 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003055/1.049, allocations: 47.98 kB / 0.6479 GB, free: 1.387 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/1.049, allocations: 4 kB / 0.6479 GB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006568/1.056, allocations: 1.809 MB / 0.6497 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/1.056, allocations: 0 / 0.6497 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003278/1.059, allocations: 0.5833 MB / 0.6502 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/1.061, allocations: 231.7 kB / 0.6504 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.075, allocations: 5.404 MB / 0.6557 GB, free: 9.188 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/1.077, allocations: 71.95 kB / 0.6558 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/1.077, allocations: 43.98 kB / 0.6558 GB, free: 9.074 MB / 458.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.0004077/1.078, allocations: 132.7 kB / 0.656 GB, free: 8.938 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005878/1.084, allocations: 1.697 MB / 0.6576 GB, free: 7.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/1.084, allocations: 102.9 kB / 0.6577 GB, free: 7.129 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006508/1.091, allocations: 1.892 MB / 0.6596 GB, free: 5.215 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/1.091, allocations: 12 kB / 0.6596 GB, free: 5.203 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/1.091, allocations: 7.953 kB / 0.6596 GB, free: 5.195 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.364e-05/1.091, allocations: 7.969 kB / 0.6596 GB, free: 5.188 MB / 458.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.01178/1.103, allocations: 3.546 MB / 0.6631 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.103, allocations: 0 / 0.6631 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.105, allocations: 223.7 kB / 0.6633 GB, free: 1.316 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/1.108, allocations: 489.4 kB / 0.6637 GB, free: 0.832 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003038/1.108, allocations: 19.94 kB / 0.6638 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/1.123, allocations: 6.319 MB / 0.6699 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/1.123, allocations: 7.938 kB / 0.6699 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008615/1.131, allocations: 2.879 MB / 0.6727 GB, free: 7.238 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/1.132, allocations: 283.9 kB / 0.673 GB, free: 6.941 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/1.133, allocations: 15.94 kB / 0.673 GB, free: 6.926 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/1.134, allocations: 63.91 kB / 0.6731 GB, free: 6.863 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004832/1.135, allocations: 125.2 kB / 0.6732 GB, free: 6.742 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.135, allocations: 40 kB / 0.6732 GB, free: 6.703 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006903/1.136, allocations: 338.9 kB / 0.6736 GB, free: 6.371 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.136, allocations: 0 / 0.6736 GB, free: 6.371 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003091/1.139, allocations: 0.5741 MB / 0.6741 GB, free: 5.797 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) * 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.00957/1.148, allocations: 4.141 MB / 0.6782 GB, free: 1.555 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007839/1.156, allocations: 2.628 MB / 0.6807 GB, free: 14.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.156, allocations: 0 / 0.6807 GB, free: 14.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003489/1.16, allocations: 1.169 MB / 0.6819 GB, free: 13.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/1.161, allocations: 138.6 kB / 0.682 GB, free: 13.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008128/1.17, allocations: 2.425 MB / 0.6844 GB, free: 11.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/1.171, allocations: 1.275 MB / 0.6856 GB, free: 9.762 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.172, allocations: 439.3 kB / 0.686 GB, free: 9.332 MB / 490.7 MB Notification: Performance of SimCode: time 3.858e-06/1.172, allocations: 3.938 kB / 0.686 GB, free: 9.328 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.441/4.613, allocations: 25.53 MB / 0.711 GB, free: 125.9 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)