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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 109.2 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 66.66 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008438/0.1171, allocations: 7.445 MB / 464.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004949/0.1221, allocations: 2.988 MB / 467.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006972/0.1228, allocations: 27.88 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.125, allocations: 0.7768 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.1269, allocations: 0.6882 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.128, allocations: 379.2 kB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.1297, allocations: 1.325 MB / 470.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.1308, allocations: 0.7563 MB / 471.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009835/0.1318, allocations: 0.5488 MB / 471.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.133, allocations: 0.6268 MB / 472.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.1332, allocations: 72 kB / 472.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.1343, allocations: 475.1 kB / 473.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005396/0.1348, allocations: 458.9 kB / 473.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007433/0.1356, allocations: 0.5015 MB / 474 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.1373, allocations: 1.406 MB / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.1373, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1374, allocations: 3.938 kB / 475.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.441e-05/0.1374, allocations: 0 / 475.4 MB, free: 5.438 MB / 350.1 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.002982/0.1404, allocations: 1.273 MB / 476.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.1405, allocations: 11.89 kB / 476.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002181/0.1407, allocations: 139.7 kB / 476.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.142, allocations: 203.6 kB / 477 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.1436, allocations: 0.6865 MB / 477.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.1437, allocations: 62.12 kB / 477.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002517/0.1439, allocations: 95.91 kB / 477.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.1457, allocations: 1.115 MB / 479 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.1458, allocations: 0 / 479 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.1459, allocations: 35.98 kB / 479 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.146, allocations: 65.97 kB / 479.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1474, allocations: 0.8938 MB / 480 MB, free: 0.7227 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.1523, allocations: 4.082 MB / 484.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005711/0.1529, allocations: 422.1 kB / 484.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003405/0.1533, allocations: 269.5 kB / 484.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.1533, allocations: 8 kB / 484.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.1533, allocations: 38.55 kB / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.094e-06/0.1533, allocations: 0 / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003877/0.1572, allocations: 1.984 MB / 486.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.1573, allocations: 89.67 kB / 486.9 MB, free: 9.504 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.1579, allocations: 0.5616 MB / 487.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.1579, allocations: 37.69 kB / 487.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.1582, allocations: 474.3 kB / 487.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.1584, allocations: 181.4 kB / 488.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.1585, allocations: 154.5 kB / 488.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1587, allocations: 382.6 kB / 488.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.1591, allocations: 269.8 kB / 488.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.1596, allocations: 0.4965 MB / 489.4 MB, free: 6.832 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.002839/0.1625, allocations: 1.415 MB / 490.8 MB, free: 5.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1625, allocations: 4 kB / 490.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001727/0.1642, allocations: 1.099 MB / 491.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1642, allocations: 12.09 kB / 491.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001126/0.1654, allocations: 0.7528 MB / 492.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004843/0.1659, allocations: 170.4 kB / 492.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005909/0.1665, allocations: 175.7 kB / 493 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.1702, allocations: 4.845 MB / 497.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.1707, allocations: 39.97 kB / 497.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/0.1708, allocations: 35.92 kB / 497.9 MB, free: 13.69 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004492/0.1712, allocations: 325.3 kB / 498.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.1714, allocations: 75.16 kB / 498.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.1724, allocations: 0.6435 MB / 499 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1724, allocations: 4 kB / 499 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1724, allocations: 0 / 499 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1724, allocations: 3.984 kB / 499 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.1748, allocations: 1.514 MB / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1748, allocations: 0 / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/0.1754, allocations: 128 kB / 0.4889 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.1754, allocations: 4 kB / 0.4889 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.1754, allocations: 15.98 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-06/0.1754, allocations: 7.938 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1754, allocations: 3.938 kB / 0.4889 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1767, allocations: 0.9512 MB / 0.4898 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.177, allocations: 180.4 kB / 0.49 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.1771, allocations: 19.91 kB / 0.49 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003403/0.1774, allocations: 19.98 kB / 0.49 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.1775, allocations: 40.33 kB / 0.4901 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.1775, allocations: 16 kB / 0.4901 GB, free: 9.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004801/0.178, allocations: 415 kB / 0.4905 GB, free: 9.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.178, allocations: 3.938 kB / 0.4905 GB, free: 9.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008939/0.1789, allocations: 232 kB / 0.4907 GB, free: 8.965 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/0.1805, allocations: 1.528 MB / 0.4922 GB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.1825, allocations: 1.148 MB / 0.4933 GB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.1825, allocations: 0 / 0.4933 GB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000382/0.1829, allocations: 266.3 kB / 0.4936 GB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008265/0.1837, allocations: 162.5 kB / 0.4937 GB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009991/0.1937, allocations: 7.312 MB / 0.5009 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007685/0.1945, allocations: 1.078 MB / 0.5019 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005849/0.1951, allocations: 205.8 kB / 0.5021 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/0.1955, allocations: 323.3 kB / 0.5024 GB, free: 12.46 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1956, allocations: 0 / 0.5024 GB, free: 12.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2527/0.4482, allocations: 15.7 MB / 0.5178 GB, free: 70.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.144/9.592, allocations: 4.891 kB / 0.5178 GB, free: 70.5 MB / 398.1 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/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)