Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState",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.001504/0.001509, allocations: 180.2 kB / 13.19 MB, free: 2.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 94.16 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2624/0.2624, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.447e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4749/0.5781, allocations: 103.7 MB / 0.5634 GB, free: 15.85 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5785, allocations: 83.95 kB / 0.5635 GB, free: 15.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1137/0.6922, allocations: 25.81 MB / 0.5887 GB, free: 5.637 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6923, allocations: 8 kB / 0.5887 GB, free: 5.629 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.414e-05/0.6924, allocations: 20 kB / 0.5887 GB, free: 5.609 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003169/0.6956, allocations: 1.062 MB / 0.5897 GB, free: 4.492 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.6956, allocations: 8.031 kB / 0.5897 GB, free: 4.484 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003539/0.696, allocations: 143.5 kB / 0.5899 GB, free: 4.336 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.6976, allocations: 182.5 kB / 0.59 GB, free: 4.156 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005512/0.7031, allocations: 1.342 MB / 0.5914 GB, free: 2.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.935e-05/0.7033, allocations: 66 kB / 0.5914 GB, free: 2.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.7035, allocations: 79.98 kB / 0.5915 GB, free: 2.629 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/0.7063, allocations: 1.14 MB / 0.5926 GB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.18e-05/0.7063, allocations: 3.906 kB / 0.5926 GB, free: 1.402 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.7065, allocations: 36 kB / 0.5926 GB, free: 1.367 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.7066, allocations: 49.98 kB / 0.5927 GB, free: 1.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002366/0.709, allocations: 0.8742 MB / 0.5935 GB, free: 452 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009123/0.7181, allocations: 4.708 MB / 0.5981 GB, free: 11.53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.72, allocations: 0.6733 MB / 0.5988 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009458/0.721, allocations: 399.9 kB / 0.5992 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-05/0.7211, allocations: 12.55 kB / 0.5992 GB, free: 10.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.7221, allocations: 455.8 kB / 0.5996 GB, free: 9.969 MB / 442.7 MB Notification: Performance of pre-optimization done (n=69): time 3.677e-06/0.7221, allocations: 7.875 kB / 0.5996 GB, free: 9.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=70): time 0.004866/0.727, allocations: 1.696 MB / 0.6013 GB, free: 8.234 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.7271, allocations: 170.8 kB / 0.6015 GB, free: 8.027 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009767/0.7281, allocations: 0.5111 MB / 0.602 GB, free: 7.512 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-05/0.7282, allocations: 37.7 kB / 0.602 GB, free: 7.469 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/0.7287, allocations: 497.2 kB / 0.6025 GB, free: 6.977 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003107/0.7291, allocations: 236.7 kB / 0.6027 GB, free: 6.742 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.7291, allocations: 16 kB / 0.6027 GB, free: 6.727 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.7293, allocations: 350.8 kB / 0.603 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007962/0.7301, allocations: 289.8 kB / 0.6033 GB, free: 6.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.7312, allocations: 0.5451 MB / 0.6039 GB, free: 5.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.7322, allocations: 416.7 kB / 0.6043 GB, free: 5.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.7322, allocations: 8 kB / 0.6043 GB, free: 5.012 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003419/0.7357, allocations: 1.185 MB / 0.6054 GB, free: 3.805 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.533e-05/0.7357, allocations: 41.56 kB / 0.6055 GB, free: 3.758 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.7358, allocations: 8 kB / 0.6055 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.7376, allocations: 345.7 kB / 0.6058 GB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000962/0.7385, allocations: 147.7 kB / 0.6059 GB, free: 3.262 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009048/0.7476, allocations: 4.939 MB / 0.6108 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009863/0.7486, allocations: 47.88 kB / 0.6108 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.153e-05/0.7487, allocations: 36 kB / 0.6108 GB, free: 13.95 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * Array equations: 1 * 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: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003075/0.7491, allocations: 199.2 kB / 0.611 GB, free: 13.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.7492, allocations: 71.16 kB / 0.6111 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003224/0.7525, allocations: 1.064 MB / 0.6121 GB, free: 12.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/0.7525, allocations: 12 kB / 0.6121 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.7525, allocations: 11.98 kB / 0.6122 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.7526, allocations: 0 / 0.6122 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005587/0.7582, allocations: 2.102 MB / 0.6142 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.7582, allocations: 4 kB / 0.6142 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006316/0.7589, allocations: 84.05 kB / 0.6143 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/0.7604, allocations: 317.4 kB / 0.6146 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/0.7605, allocations: 15.98 kB / 0.6146 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008716/0.7692, allocations: 4.875 MB / 0.6194 GB, free: 4.785 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/0.7693, allocations: 7.984 kB / 0.6194 GB, free: 4.777 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.7725, allocations: 1.195 MB / 0.6205 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002948/0.7728, allocations: 148.2 kB / 0.6207 GB, free: 3.336 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.773, allocations: 20 kB / 0.6207 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006462/0.7736, allocations: 39.89 kB / 0.6207 GB, free: 3.277 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.7738, allocations: 44.5 kB / 0.6208 GB, free: 3.234 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-05/0.7739, allocations: 24 kB / 0.6208 GB, free: 3.211 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007829/0.7747, allocations: 403.1 kB / 0.6212 GB, free: 2.824 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7747, allocations: 0 / 0.6212 GB, free: 2.824 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001399/0.7761, allocations: 303.9 kB / 0.6215 GB, free: 2.527 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003799/0.78, allocations: 2.247 MB / 0.6237 GB, free: 200 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002994/0.783, allocations: 1.164 MB / 0.6248 GB, free: 14.99 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.783, allocations: 4 kB / 0.6248 GB, free: 14.99 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/0.7849, allocations: 0.7719 MB / 0.6256 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.7862, allocations: 151.2 kB / 0.6257 GB, free: 14.03 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004695/0.7909, allocations: 1.679 MB / 0.6274 GB, free: 12.29 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.792, allocations: 1.123 MB / 0.6285 GB, free: 11.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007106/0.7927, allocations: 327.3 kB / 0.6288 GB, free: 10.82 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7927, allocations: 7.938 kB / 0.6288 GB, free: 10.81 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.675/4.467, allocations: 21.33 MB / 0.6496 GB, free: 133.3 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)