Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkControlled,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001084/0.001084, allocations: 180.5 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.001/1.001, allocations: 194.2 MB / 202.8 MB, free: 8.812 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001543/0.001543, allocations: 120.9 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1503/0.1503, allocations: 37.91 MB / 330.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1687/0.319, allocations: 59.35 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06847/0.3875, allocations: 53.23 MB / 443.1 MB, free: 24.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2314/0.619, allocations: 97.45 MB / 0.5279 GB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.6192, allocations: 86.25 kB / 0.528 GB, free: 8.652 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.1491/0.7684, allocations: 67.34 MB / 0.5937 GB, free: 14.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.7684, allocations: 12 kB / 0.5938 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003945/0.7724, allocations: 485.7 kB / 0.5942 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.7739, allocations: 0.6757 MB / 0.5949 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.774, allocations: 32 kB / 0.5949 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/0.7743, allocations: 68 kB / 0.595 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002088/0.7764, allocations: 1.187 MB / 0.5961 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/0.7786, allocations: 1.363 MB / 0.5975 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.7786, allocations: 7.984 kB / 0.5975 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.7787, allocations: 0 / 0.5975 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002672/0.779, allocations: 118.1 kB / 0.5976 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007297/0.7863, allocations: 4.569 MB / 0.602 GB, free: 5.457 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.7874, allocations: 0.7495 MB / 0.6028 GB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009063/0.7883, allocations: 0.7121 MB / 0.6035 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.144e-05/0.7884, allocations: 16.98 kB / 0.6035 GB, free: 3.957 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009878/0.7894, allocations: 0.7457 MB / 0.6042 GB, free: 3.188 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 3.326e-06/0.7894, allocations: 0 / 0.6042 GB, free: 3.188 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.007866/0.7972, allocations: 4.505 MB / 0.6086 GB, free: 14.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.7973, allocations: 116.1 kB / 0.6087 GB, free: 14.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.7978, allocations: 422.4 kB / 0.6091 GB, free: 14.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.392e-05/0.7979, allocations: 33.7 kB / 0.6092 GB, free: 13.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/0.7982, allocations: 376.2 kB / 0.6095 GB, free: 13.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.7986, allocations: 457.2 kB / 0.61 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.309e-05/0.7987, allocations: 0 / 0.61 GB, free: 13.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.7989, allocations: 398.7 kB / 0.6103 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007645/0.7996, allocations: 0.5375 MB / 0.6109 GB, free: 12.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008451/0.8005, allocations: 0.6738 MB / 0.6115 GB, free: 11.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009045/0.8014, allocations: 0.6309 MB / 0.6121 GB, free: 10.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.8014, allocations: 7.969 kB / 0.6121 GB, free: 10.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.00373/0.8051, allocations: 1.963 MB / 0.6141 GB, free: 8.902 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004198/0.8056, allocations: 0.9651 MB / 0.615 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.8056, allocations: 3.938 kB / 0.615 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/0.8076, allocations: 0.6502 MB / 0.6156 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8086, allocations: 215.7 kB / 0.6158 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/0.8106, allocations: 1.654 MB / 0.6175 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009813/0.8116, allocations: 67.86 kB / 0.6175 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.8117, allocations: 43.98 kB / 0.6176 GB, free: 5.203 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.8118, allocations: 4 kB / 0.6176 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003517/0.8153, allocations: 1.806 MB / 0.6193 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.8153, allocations: 0 / 0.6193 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001925/0.8172, allocations: 0.6425 MB / 0.62 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009281/0.8182, allocations: 215.7 kB / 0.6202 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007321/0.8255, allocations: 4.931 MB / 0.625 GB, free: 13.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.8266, allocations: 63.84 kB / 0.625 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002033/0.8268, allocations: 39.98 kB / 0.6251 GB, free: 13.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * 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 56} Notification: Performance of prepare postOptimizeDAE: time 0.0003383/0.8272, allocations: 120.9 kB / 0.6252 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.8274, allocations: 98.88 kB / 0.6253 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.831, allocations: 1.932 MB / 0.6272 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.8311, allocations: 16 kB / 0.6272 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.8311, allocations: 0 / 0.6272 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.8311, allocations: 7.969 kB / 0.6272 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006186/0.8373, allocations: 3.595 MB / 0.6307 GB, free: 7.496 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.8373, allocations: 8.281 kB / 0.6307 GB, free: 7.488 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009346/0.8382, allocations: 207.8 kB / 0.6309 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/0.8397, allocations: 493.3 kB / 0.6314 GB, free: 6.797 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.8398, allocations: 11.98 kB / 0.6314 GB, free: 6.785 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007478/0.8473, allocations: 5.99 MB / 0.6372 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8473, allocations: 4 kB / 0.6373 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004375/0.8517, allocations: 2.949 MB / 0.6401 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00562/0.8573, allocations: 4.244 MB / 0.6443 GB, free: 9.121 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005361/0.8579, allocations: 283.8 kB / 0.6445 GB, free: 8.824 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/0.8581, allocations: 4 kB / 0.6446 GB, free: 8.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000832/0.8589, allocations: 59.94 kB / 0.6446 GB, free: 8.762 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.8591, allocations: 97.02 kB / 0.6447 GB, free: 8.668 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.8592, allocations: 39.98 kB / 0.6447 GB, free: 8.629 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003683/0.8596, allocations: 338.8 kB / 0.6451 GB, free: 8.297 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002736/0.8623, allocations: 0.5469 MB / 0.6456 GB, free: 7.75 MB / 458.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 (102): * Single equations (assignments): 97 * 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.0002182/0.8626, allocations: 127 kB / 0.6457 GB, free: 7.617 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003991/0.8666, allocations: 2.526 MB / 0.6482 GB, free: 5.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.8666, allocations: 4.188 kB / 0.6482 GB, free: 5.066 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.8682, allocations: 1.099 MB / 0.6493 GB, free: 3.945 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/0.869, allocations: 123.2 kB / 0.6494 GB, free: 3.828 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.873, allocations: 2.19 MB / 0.6515 GB, free: 1.574 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.8741, allocations: 1.311 MB / 0.6528 GB, free: 240 kB / 458.7 MB Notification: Performance of SimCode: time 2.6e-07/0.8741, allocations: 0 / 0.6528 GB, free: 240 kB / 458.7 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Network_NetworkControlled.fmu > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)