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"}) [: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.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 181.2 kB / 8.131 MB, free: 2.684 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.2 MB / 213.7 MB, free: 2.156 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009767/0.0009768, allocations: 91.66 kB / 261.7 MB, free: 1.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1825/0.1825, allocations: 37.98 MB / 347.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.2651/0.4476, allocations: 62.43 MB / 410.1 MB, free: 68.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.575, allocations: 56.32 MB / 466.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4558/1.031, allocations: 103.5 MB / 0.5566 GB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004055/1.031, allocations: 88.12 kB / 0.5566 GB, free: 15.55 MB / 382.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.2011/1.232, allocations: 68.1 MB / 0.6232 GB, free: 2.281 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/1.233, allocations: 12 kB / 0.6232 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005433/1.238, allocations: 493.7 kB / 0.6236 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/1.241, allocations: 0.6913 MB / 0.6243 GB, free: 1.047 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.574e-05/1.241, allocations: 36 kB / 0.6243 GB, free: 1.012 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005361/1.241, allocations: 71.91 kB / 0.6244 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003645/1.245, allocations: 1.199 MB / 0.6256 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004695/1.25, allocations: 1.389 MB / 0.6269 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.472e-05/1.25, allocations: 4 kB / 0.6269 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/1.25, allocations: 0 / 0.6269 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003813/1.251, allocations: 118.2 kB / 0.6271 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/1.262, allocations: 4.8 MB / 0.6317 GB, free: 9.254 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/1.264, allocations: 0.7534 MB / 0.6325 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/1.265, allocations: 0.7201 MB / 0.6332 GB, free: 7.762 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/1.265, allocations: 24.98 kB / 0.6332 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/1.267, allocations: 0.7378 MB / 0.6339 GB, free: 6.977 MB / 446.1 MB Notification: Performance of pre-optimization done (n=126): time 4.939e-06/1.267, allocations: 0 / 0.6339 GB, free: 6.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=137): time 0.01137/1.278, allocations: 4.533 MB / 0.6384 GB, free: 2.344 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/1.278, allocations: 124.1 kB / 0.6385 GB, free: 2.195 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009024/1.279, allocations: 454.4 kB / 0.6389 GB, free: 1.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/1.279, allocations: 25.7 kB / 0.6389 GB, free: 1.719 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005535/1.28, allocations: 392.3 kB / 0.6393 GB, free: 1.328 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006985/1.28, allocations: 449.2 kB / 0.6397 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/1.281, allocations: 0 / 0.6397 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002962/1.281, allocations: 406.6 kB / 0.6401 GB, free: 488 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/1.282, allocations: 0.5375 MB / 0.6406 GB, free: 15.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/1.283, allocations: 0.6871 MB / 0.6413 GB, free: 15.21 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/1.284, allocations: 0.6388 MB / 0.6419 GB, free: 14.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/1.284, allocations: 0 / 0.6419 GB, free: 14.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004804/1.289, allocations: 1.998 MB / 0.6439 GB, free: 12.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005947/1.29, allocations: 1.142 MB / 0.645 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/1.29, allocations: 0 / 0.645 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.292, allocations: 0.662 MB / 0.6457 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/1.294, allocations: 215.7 kB / 0.6459 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002866/1.297, allocations: 1.674 MB / 0.6475 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/1.298, allocations: 67.83 kB / 0.6476 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/1.298, allocations: 43.98 kB / 0.6476 GB, free: 8.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.298, allocations: 4 kB / 0.6476 GB, free: 8.656 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004538/1.303, allocations: 1.833 MB / 0.6494 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/1.303, allocations: 4 kB / 0.6494 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/1.305, allocations: 0.6504 MB / 0.65 GB, free: 6.156 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.307, allocations: 215.7 kB / 0.6502 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/1.317, allocations: 5.009 MB / 0.6551 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/1.319, allocations: 63.92 kB / 0.6552 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003875/1.319, allocations: 51.89 kB / 0.6552 GB, free: 0.7031 MB / 462.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.0005996/1.32, allocations: 128.1 kB / 0.6554 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003273/1.32, allocations: 94.88 kB / 0.6555 GB, free: 492 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006098/1.326, allocations: 1.936 MB / 0.6573 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.842e-05/1.326, allocations: 16 kB / 0.6574 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/1.326, allocations: 0 / 0.6574 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.839e-05/1.326, allocations: 11.91 kB / 0.6574 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008742/1.335, allocations: 3.617 MB / 0.6609 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.335, allocations: 0 / 0.6609 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/1.336, allocations: 220 kB / 0.6611 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/1.338, allocations: 489.2 kB / 0.6616 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/1.338, allocations: 15.98 kB / 0.6616 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/1.349, allocations: 5.99 MB / 0.6674 GB, free: 3.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.576e-05/1.349, allocations: 4 kB / 0.6674 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006401/1.355, allocations: 2.961 MB / 0.6703 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008074/1.363, allocations: 4.26 MB / 0.6745 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007879/1.364, allocations: 291.7 kB / 0.6748 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/1.365, allocations: 8.062 kB / 0.6748 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/1.366, allocations: 59.94 kB / 0.6748 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/1.366, allocations: 97.16 kB / 0.6749 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.366, allocations: 39.91 kB / 0.675 GB, free: 11.88 MB / 494.1 MB Notification: Performance of sort global known variables: time 0.0005281/1.367, allocations: 346.9 kB / 0.6753 GB, free: 11.54 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00373/1.37, allocations: 0.5508 MB / 0.6758 GB, free: 10.99 MB / 494.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.0003591/1.371, allocations: 130.2 kB / 0.676 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005289/1.376, allocations: 2.554 MB / 0.6785 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.376, allocations: 3.938 kB / 0.6785 GB, free: 8.277 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002233/1.378, allocations: 1.107 MB / 0.6795 GB, free: 7.148 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/1.379, allocations: 134 kB / 0.6797 GB, free: 7.023 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005198/1.385, allocations: 2.224 MB / 0.6818 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/1.386, allocations: 1.335 MB / 0.6831 GB, free: 3.367 MB / 494.1 MB Notification: Performance of SimCode: time 5.81e-07/1.386, allocations: 0 / 0.6831 GB, free: 3.367 MB / 494.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