Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_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.001163/0.001163, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001195/0.001195, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.313/1.313, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1734/0.1734, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002291/0.002291, allocations: 65.5 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1133, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007905/0.1213, allocations: 7.446 MB / 464.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003893/0.1252, allocations: 2.984 MB / 467.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.1255, allocations: 31.88 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.1272, allocations: 0.7778 MB / 468.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001129/0.1283, allocations: 0.6882 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006722/0.129, allocations: 375.2 kB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.1302, allocations: 1.325 MB / 470.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008423/0.1311, allocations: 0.7563 MB / 471.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005191/0.1316, allocations: 0.5488 MB / 471.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007564/0.1324, allocations: 0.6268 MB / 472.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.1325, allocations: 76 kB / 472.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006956/0.1332, allocations: 479.1 kB / 473.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.1336, allocations: 454.9 kB / 473.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004699/0.1341, allocations: 0.5054 MB / 474 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.1354, allocations: 1.402 MB / 475.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1354, allocations: 0 / 475.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1354, allocations: 3.938 kB / 475.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1354, allocations: 0 / 475.4 MB, free: 5.434 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.001954/0.1374, allocations: 1.27 MB / 476.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1374, allocations: 11.89 kB / 476.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001468/0.1376, allocations: 143.7 kB / 476.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.1388, allocations: 199.6 kB / 477 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.14, allocations: 0.6865 MB / 477.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.412e-05/0.14, allocations: 66.12 kB / 477.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.1402, allocations: 95.91 kB / 477.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1417, allocations: 1.115 MB / 479 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.1417, allocations: 0 / 479 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/0.1418, allocations: 32 kB / 479 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/0.142, allocations: 69.95 kB / 479.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.1433, allocations: 0.8899 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.004662/0.1479, allocations: 4.082 MB / 484.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.1485, allocations: 418 kB / 484.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003552/0.1489, allocations: 275.9 kB / 484.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.1489, allocations: 15.92 kB / 484.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.149, allocations: 34.56 kB / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.774e-06/0.149, allocations: 0 / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003914/0.1529, allocations: 1.977 MB / 486.8 MB, free: 9.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.153, allocations: 85.67 kB / 486.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005851/0.1536, allocations: 0.5694 MB / 487.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.1536, allocations: 37.69 kB / 487.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.1539, allocations: 470.3 kB / 487.9 MB, free: 8.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.154, allocations: 185.4 kB / 488.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.1543, allocations: 154.5 kB / 488.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1544, allocations: 378.7 kB / 488.6 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.1548, allocations: 277.8 kB / 488.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005575/0.1554, allocations: 0.5004 MB / 489.4 MB, free: 6.824 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.00287/0.1583, allocations: 1.415 MB / 490.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1583, allocations: 0 / 490.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001786/0.1601, allocations: 1.099 MB / 491.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1601, allocations: 8.438 kB / 491.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001157/0.1613, allocations: 0.7528 MB / 492.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/0.1618, allocations: 170.4 kB / 492.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005619/0.1623, allocations: 175.7 kB / 493 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003698/0.1661, allocations: 4.849 MB / 497.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.1665, allocations: 39.97 kB / 497.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.1666, allocations: 31.94 kB / 497.9 MB, free: 13.7 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.0004168/0.167, allocations: 326.5 kB / 498.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1671, allocations: 71.09 kB / 498.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009251/0.1681, allocations: 0.6436 MB / 498.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1681, allocations: 8 kB / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.1681, allocations: 0 / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1681, allocations: 3.984 kB / 499 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.1702, allocations: 1.522 MB / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1702, allocations: 0 / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/0.1708, allocations: 123.9 kB / 0.4889 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1708, allocations: 8.188 kB / 0.4889 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.1708, allocations: 12 kB / 0.4889 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/0.1709, allocations: 7.938 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1709, allocations: 3.938 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.172, allocations: 0.9551 MB / 0.4898 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.1722, allocations: 176.4 kB / 0.49 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.537e-05/0.1723, allocations: 23.89 kB / 0.49 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.1726, allocations: 23.92 kB / 0.49 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.1727, allocations: 36.33 kB / 0.4901 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.1727, allocations: 20 kB / 0.4901 GB, free: 9.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004091/0.1731, allocations: 411 kB / 0.4905 GB, free: 9.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1731, allocations: 0 / 0.4905 GB, free: 9.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006747/0.1738, allocations: 228 kB / 0.4907 GB, free: 8.973 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.001496/0.1753, allocations: 1.531 MB / 0.4922 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.1769, allocations: 1.148 MB / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1769, allocations: 0 / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.1772, allocations: 266.3 kB / 0.4936 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.178, allocations: 142.9 kB / 0.4937 GB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008294/0.1863, allocations: 7.326 MB / 0.5009 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000633/0.1869, allocations: 1.078 MB / 0.5019 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005084/0.1874, allocations: 201.8 kB / 0.5021 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.1878, allocations: 323.3 kB / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1878, allocations: 0 / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3205/0.5084, allocations: 15.7 MB / 0.5178 GB, free: 70.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.765/10.27, allocations: 5.016 kB / 0.5178 GB, free: 70.65 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)