Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",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.001133/0.001134, allocations: 183.9 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008444/0.0008446, allocations: 93.19 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.173/0.173, allocations: 37.96 MB / 347.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.206/0.3791, allocations: 62.45 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.4897, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3385/0.8283, allocations: 111.4 MB / 0.5643 GB, free: 15.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.8286, allocations: 87.95 kB / 0.5644 GB, free: 14.97 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.08455/0.9131, allocations: 30.28 MB / 0.594 GB, free: 296 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.9132, allocations: 12 kB / 0.594 GB, free: 284 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.9146, allocations: 190.6 kB / 0.5941 GB, free: 92 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003565/0.9182, allocations: 1.177 MB / 0.5953 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/0.9183, allocations: 27.98 kB / 0.5953 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003048/0.9186, allocations: 51.91 kB / 0.5954 GB, free: 14.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001602/0.9202, allocations: 0.7497 MB / 0.5961 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.9219, allocations: 0.9873 MB / 0.5971 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.922, allocations: 3.938 kB / 0.5971 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.601e-05/0.9221, allocations: 4 kB / 0.5971 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.9222, allocations: 73.95 kB / 0.5971 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005845/0.928, allocations: 3.933 MB / 0.601 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.9285, allocations: 303.5 kB / 0.6013 GB, free: 8.488 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.9289, allocations: 270.3 kB / 0.6015 GB, free: 8.219 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.517e-05/0.929, allocations: 4.375 kB / 0.6015 GB, free: 8.215 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.929, allocations: 38.94 kB / 0.6016 GB, free: 8.168 MB / 442.7 MB Notification: Performance of pre-optimization done (n=47): time 2.825e-06/0.929, allocations: 4 kB / 0.6016 GB, free: 8.164 MB / 442.7 MB Notification: Performance of matching and sorting (n=54): time 0.003619/0.9326, allocations: 1.649 MB / 0.6032 GB, free: 6.461 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.9327, allocations: 89.48 kB / 0.6033 GB, free: 6.355 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.9333, allocations: 426 kB / 0.6037 GB, free: 5.934 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.9333, allocations: 25.7 kB / 0.6037 GB, free: 5.902 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.9336, allocations: 414.2 kB / 0.6041 GB, free: 5.488 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.9338, allocations: 189.2 kB / 0.6043 GB, free: 5.301 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.9338, allocations: 0 / 0.6043 GB, free: 5.301 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.934, allocations: 378.7 kB / 0.6046 GB, free: 4.922 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.9344, allocations: 261.5 kB / 0.6049 GB, free: 4.668 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.9349, allocations: 492.8 kB / 0.6054 GB, free: 4.082 MB / 442.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.002504/0.9374, allocations: 0.7145 MB / 0.6061 GB, free: 3.367 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.9375, allocations: 4 kB / 0.6061 GB, free: 3.363 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002401/0.9399, allocations: 1.093 MB / 0.6071 GB, free: 2.234 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.9399, allocations: 4 kB / 0.6071 GB, free: 2.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001775/0.9417, allocations: 0.8092 MB / 0.6079 GB, free: 1.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/0.9424, allocations: 207.2 kB / 0.6081 GB, free: 1.172 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.9431, allocations: 167.7 kB / 0.6083 GB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006152/0.9493, allocations: 5.928 MB / 0.6141 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/0.9499, allocations: 23.94 kB / 0.6141 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.185e-05/0.95, allocations: 31.98 kB / 0.6141 GB, free: 10.56 MB / 458.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: infBus.V = 20000.0 * infBus.v0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: infBus.V:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) = 20000.0 * infBus.v0 type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002549/0.9503, allocations: 132.7 kB / 0.6143 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.9505, allocations: 63.31 kB / 0.6143 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.9515, allocations: 0.6027 MB / 0.6149 GB, free: 9.746 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.9516, allocations: 4 kB / 0.6149 GB, free: 9.742 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.9516, allocations: 3.906 kB / 0.6149 GB, free: 9.738 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.9516, allocations: 7.984 kB / 0.6149 GB, free: 9.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.9547, allocations: 1.639 MB / 0.6165 GB, free: 7.988 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.9547, allocations: 8 kB / 0.6165 GB, free: 7.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006525/0.9554, allocations: 127.8 kB / 0.6166 GB, free: 7.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.9554, allocations: 11.94 kB / 0.6167 GB, free: 7.844 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.9555, allocations: 19.92 kB / 0.6167 GB, free: 7.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.9555, allocations: 8 kB / 0.6167 GB, free: 7.816 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.9555, allocations: 11.94 kB / 0.6167 GB, free: 7.805 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001448/0.9569, allocations: 1.289 MB / 0.618 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002017/0.959, allocations: 1.973 MB / 0.6199 GB, free: 4.117 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.9593, allocations: 180.3 kB / 0.6201 GB, free: 3.922 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.9594, allocations: 15.98 kB / 0.6201 GB, free: 3.906 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.9598, allocations: 15.89 kB / 0.6201 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.9599, allocations: 39.95 kB / 0.6201 GB, free: 3.852 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.96, allocations: 23.91 kB / 0.6201 GB, free: 3.828 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.000393/0.9604, allocations: 322.9 kB / 0.6205 GB, free: 3.516 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001471/0.9619, allocations: 195.9 kB / 0.6206 GB, free: 3.324 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002362/0.9621, allocations: 151 kB / 0.6208 GB, free: 3.168 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.9638, allocations: 1.067 MB / 0.6218 GB, free: 2.066 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.9639, allocations: 1.438 kB / 0.6218 GB, free: 2.066 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.9642, allocations: 268.7 kB / 0.6221 GB, free: 1.805 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.9649, allocations: 110 kB / 0.6222 GB, free: 1.695 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.9682, allocations: 1.662 MB / 0.6238 GB, free: 15.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.9693, allocations: 1.167 MB / 0.625 GB, free: 14.74 MB / 474.7 MB Notification: Performance of SimCode: time 1.192e-06/0.9693, allocations: 7.875 kB / 0.625 GB, free: 14.73 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat does not exist to compare? outputFormat=mat