Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.001215/0.001215, allocations: 104.9 kB / 17.06 MB, free: 6.027 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.00119/0.00119, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1868/0.1868, allocations: 37.99 MB / 309.2 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 63.91 kB / 431.3 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1189, allocations: 55.25 MB / 486.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006616/0.1256, allocations: 4.412 MB / 491 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.1281, allocations: 1.478 MB / 492.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003394/0.1285, allocations: 15.88 kB / 492.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.1297, allocations: 370.5 kB / 492.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006526/0.1304, allocations: 218.9 kB / 493.1 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007048/0.1311, allocations: 239.4 kB / 493.3 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007519/0.1319, allocations: 0.5417 MB / 493.8 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004692/0.1323, allocations: 281.3 kB / 494.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004749/0.1328, allocations: 243.1 kB / 494.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005744/0.1334, allocations: 303 kB / 494.7 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.139e-05/0.1335, allocations: 32 kB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003773/0.1339, allocations: 143.8 kB / 494.8 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002751/0.1342, allocations: 223.4 kB / 495 MB, free: 380 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.1345, allocations: 230.9 kB / 495.3 MB, free: 148 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007708/0.1353, allocations: 0.5685 MB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1353, allocations: 0 / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1353, allocations: 4 kB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.846e-05/0.1354, allocations: 0 / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001514/0.1369, allocations: 0.7271 MB / 496.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.137, allocations: 11.89 kB / 496.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.1371, allocations: 94.69 kB / 496.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005761/0.1376, allocations: 76.33 kB / 496.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007644/0.1384, allocations: 411.3 kB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.1385, allocations: 29.38 kB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.1386, allocations: 47.88 kB / 497.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.1395, allocations: 0.6326 MB / 497.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.1396, allocations: 3.938 kB / 497.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.1396, allocations: 20 kB / 497.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.1397, allocations: 32.98 kB / 497.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007338/0.1405, allocations: 479.4 kB / 498.4 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.1439, allocations: 2.883 MB / 0.4895 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.1443, allocations: 240.9 kB / 0.4897 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.1446, allocations: 145.7 kB / 0.4899 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.1446, allocations: 7.938 kB / 0.4899 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1447, allocations: 38.55 kB / 0.4899 GB, free: 9.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.565e-06/0.1447, allocations: 0 / 0.4899 GB, free: 9.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001665/0.1463, allocations: 0.9668 MB / 0.4909 GB, free: 8.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.1464, allocations: 85.05 kB / 0.491 GB, free: 8.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.1467, allocations: 324.4 kB / 0.4913 GB, free: 7.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1468, allocations: 29.7 kB / 0.4913 GB, free: 7.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1469, allocations: 275.3 kB / 0.4916 GB, free: 7.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.082e-05/0.147, allocations: 98.64 kB / 0.4917 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.1472, allocations: 94.16 kB / 0.4917 GB, free: 7.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1473, allocations: 350.9 kB / 0.4921 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.1476, allocations: 145 kB / 0.4922 GB, free: 6.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003352/0.1479, allocations: 343.2 kB / 0.4925 GB, free: 6.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006344/0.1485, allocations: 0.5206 MB / 0.493 GB, free: 5.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1486, allocations: 0 / 0.493 GB, free: 5.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007835/0.1493, allocations: 0.5288 MB / 0.4936 GB, free: 5.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1494, allocations: 11.91 kB / 0.4936 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1494, allocations: 4.031 kB / 0.4936 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.1494, allocations: 16 kB / 0.4936 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.1498, allocations: 119.8 kB / 0.4937 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.402e-05/0.1499, allocations: 15.92 kB / 0.4937 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.1501, allocations: 35.86 kB / 0.4938 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.1502, allocations: 24 kB / 0.4938 GB, free: 5.129 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.1504, allocations: 218 kB / 0.494 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.087e-05/0.1505, allocations: 27.62 kB / 0.494 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005791/0.151, allocations: 365.6 kB / 0.4944 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1511, allocations: 0 / 0.4944 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.1511, allocations: 4 kB / 0.4944 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1511, allocations: 3.984 kB / 0.4944 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.1526, allocations: 0.88 MB / 0.4952 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.1527, allocations: 4.094 kB / 0.4952 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.153, allocations: 67.89 kB / 0.4953 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-06/0.153, allocations: 4 kB / 0.4953 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.153, allocations: 11.94 kB / 0.4953 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1531, allocations: 0 / 0.4953 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1531, allocations: 7.938 kB / 0.4953 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008213/0.1539, allocations: 0.5857 MB / 0.4959 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.154, allocations: 104.7 kB / 0.496 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.326e-05/0.1541, allocations: 11.98 kB / 0.496 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.1542, allocations: 11.98 kB / 0.496 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.1543, allocations: 23.91 kB / 0.496 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.381e-05/0.1543, allocations: 12 kB / 0.4961 GB, free: 2.672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002692/0.1546, allocations: 231 kB / 0.4963 GB, free: 2.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1546, allocations: 0 / 0.4963 GB, free: 2.449 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000494/0.1551, allocations: 88 kB / 0.4964 GB, free: 2.363 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (31): * Single equations (assignments): 30 * 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.001163/0.1563, allocations: 1.13 MB / 0.4975 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.1569, allocations: 361.2 kB / 0.4978 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1569, allocations: 0 / 0.4978 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.1571, allocations: 147.9 kB / 0.4979 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.1576, allocations: 76.94 kB / 0.498 GB, free: 0.625 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005811/0.1635, allocations: 3.968 MB / 0.5019 GB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.164, allocations: 0.8696 MB / 0.5027 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000346/0.1644, allocations: 135.1 kB / 0.5029 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.1646, allocations: 143.3 kB / 0.503 GB, free: 11.2 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1646, allocations: 3.938 kB / 0.503 GB, free: 11.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.1931, allocations: 7.169 MB / 0.51 GB, free: 3.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.338, allocations: 15.98 kB / 0.51 GB, free: 3.957 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)