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: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") [: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.001001/0.001001, allocations: 183.2 kB / 8.136 MB, free: 2.207 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.175/1.175, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.0008709/0.000871, allocations: 81.91 kB / 261.7 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.184/0.184, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/7.083e-06, allocations: 4 kB / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.08268, allocations: 56.32 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2849/0.3676, allocations: 111.4 MB / 0.5642 GB, free: 15.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.3679, allocations: 87.95 kB / 0.5643 GB, free: 15.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08271/0.4506, allocations: 29.2 MB / 0.5928 GB, free: 1.465 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.703e-05/0.4507, allocations: 24 kB / 0.5928 GB, free: 1.441 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.001761/0.4525, allocations: 1.041 MB / 0.5938 GB, free: 356 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.4525, allocations: 12.02 kB / 0.5939 GB, free: 344 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.4536, allocations: 190.6 kB / 0.594 GB, free: 152 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/0.4567, allocations: 1.169 MB / 0.5952 GB, free: 14.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.4567, allocations: 28 kB / 0.5952 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.4569, allocations: 59.89 kB / 0.5953 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00126/0.4582, allocations: 0.7458 MB / 0.596 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.4597, allocations: 0.9912 MB / 0.597 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.4598, allocations: 7.938 kB / 0.597 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.105e-05/0.4598, allocations: 4 kB / 0.597 GB, free: 13.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.46, allocations: 69.95 kB / 0.597 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/0.4653, allocations: 3.937 MB / 0.6009 GB, free: 8.852 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004516/0.4658, allocations: 303.4 kB / 0.6012 GB, free: 8.543 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/0.4662, allocations: 262.3 kB / 0.6014 GB, free: 8.281 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.22e-05/0.4662, allocations: 8.375 kB / 0.6014 GB, free: 8.273 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4662, allocations: 38.94 kB / 0.6015 GB, free: 8.227 MB / 442.7 MB Notification: Performance of pre-optimization done (n=47): time 3.026e-06/0.4663, allocations: 0 / 0.6015 GB, free: 8.227 MB / 442.7 MB Notification: Performance of matching and sorting (n=54): time 0.003488/0.4698, allocations: 1.656 MB / 0.6031 GB, free: 6.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.4698, allocations: 81.55 kB / 0.6032 GB, free: 6.422 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.4704, allocations: 430 kB / 0.6036 GB, free: 5.996 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.4704, allocations: 25.7 kB / 0.6036 GB, free: 5.965 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.4707, allocations: 414.3 kB / 0.604 GB, free: 5.551 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.4709, allocations: 185.2 kB / 0.6042 GB, free: 5.367 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.4709, allocations: 0 / 0.6042 GB, free: 5.367 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.4711, allocations: 382.7 kB / 0.6045 GB, free: 4.984 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/0.4715, allocations: 253.5 kB / 0.6048 GB, free: 4.738 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005273/0.4721, allocations: 496.8 kB / 0.6053 GB, free: 4.148 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.002459/0.4745, allocations: 0.7184 MB / 0.606 GB, free: 3.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.4746, allocations: 0 / 0.606 GB, free: 3.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002265/0.4768, allocations: 1.093 MB / 0.607 GB, free: 2.301 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.4769, allocations: 11.94 kB / 0.607 GB, free: 2.289 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001739/0.4786, allocations: 0.8054 MB / 0.6078 GB, free: 1.449 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006497/0.4793, allocations: 211.3 kB / 0.608 GB, free: 1.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006454/0.4799, allocations: 159.7 kB / 0.6082 GB, free: 1.074 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/0.4859, allocations: 5.932 MB / 0.614 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/0.4866, allocations: 19.94 kB / 0.614 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.399e-05/0.4866, allocations: 36 kB / 0.614 GB, free: 10.62 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.0002567/0.4869, allocations: 144.7 kB / 0.6142 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.487, allocations: 59.25 kB / 0.6142 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.4881, allocations: 0.6068 MB / 0.6148 GB, free: 9.797 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4881, allocations: 4 kB / 0.6148 GB, free: 9.793 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4881, allocations: 3.906 kB / 0.6148 GB, free: 9.789 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4882, allocations: 3.984 kB / 0.6148 GB, free: 9.785 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.491, allocations: 1.638 MB / 0.6164 GB, free: 8.043 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.491, allocations: 4 kB / 0.6164 GB, free: 8.039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/0.4917, allocations: 135.7 kB / 0.6165 GB, free: 7.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/0.4917, allocations: 11.94 kB / 0.6166 GB, free: 7.895 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.4918, allocations: 8 kB / 0.6166 GB, free: 7.887 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.4918, allocations: 11.98 kB / 0.6166 GB, free: 7.875 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.4918, allocations: 8.406 kB / 0.6166 GB, free: 7.867 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00162/0.4935, allocations: 1.288 MB / 0.6178 GB, free: 6.359 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.4938, allocations: 184.2 kB / 0.618 GB, free: 6.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4939, allocations: 11.98 kB / 0.618 GB, free: 6.148 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.4943, allocations: 20.11 kB / 0.6181 GB, free: 6.129 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.4944, allocations: 47.8 kB / 0.6181 GB, free: 6.082 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.4944, allocations: 20 kB / 0.6181 GB, free: 6.062 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004404/0.4949, allocations: 318.9 kB / 0.6184 GB, free: 5.754 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001042/0.4959, allocations: 203.9 kB / 0.6186 GB, free: 5.555 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.0002857/0.4962, allocations: 147 kB / 0.6188 GB, free: 5.402 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.4981, allocations: 1.073 MB / 0.6198 GB, free: 4.297 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4981, allocations: 0 / 0.6198 GB, free: 4.297 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003989/0.4985, allocations: 267.6 kB / 0.6201 GB, free: 4.035 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.4992, allocations: 107.5 kB / 0.6202 GB, free: 3.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003174/0.5024, allocations: 1.664 MB / 0.6218 GB, free: 2.172 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009199/0.5033, allocations: 1.152 MB / 0.6229 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5033, allocations: 0 / 0.6229 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of Templates: time 0.01544/0.5188, allocations: 8.251 MB / 0.631 GB, free: 8.734 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches