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.001583/0.001583, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001897/0.001897, allocations: 198.9 kB / 18 MB, free: 5.078 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.465/1.465, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.001326/0.001327, allocations: 67.91 kB / 431.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 55.24 MB / 486.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005641/0.1108, allocations: 4.42 MB / 491 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.1133, allocations: 1.478 MB / 492.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000325/0.1136, allocations: 11.94 kB / 492.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.1148, allocations: 374.5 kB / 492.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006045/0.1154, allocations: 218.9 kB / 493.1 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006887/0.1161, allocations: 247.4 kB / 493.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006469/0.1168, allocations: 0.53 MB / 493.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004557/0.1173, allocations: 285.3 kB / 494.1 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004862/0.1178, allocations: 247.1 kB / 494.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005267/0.1183, allocations: 299 kB / 494.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.1184, allocations: 32 kB / 494.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003184/0.1187, allocations: 135.8 kB / 494.8 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002148/0.1189, allocations: 231.4 kB / 495 MB, free: 372 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002599/0.1192, allocations: 230.9 kB / 495.3 MB, free: 140 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006216/0.1198, allocations: 0.5685 MB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1199, allocations: 3.938 kB / 495.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1199, allocations: 0 / 495.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.1199, allocations: 8 kB / 495.9 MB, free: 15.55 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.001272/0.1212, allocations: 0.7309 MB / 496.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1212, allocations: 11.89 kB / 496.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.99e-05/0.1213, allocations: 90.7 kB / 496.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000546/0.1219, allocations: 76.33 kB / 496.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000615/0.1225, allocations: 407.3 kB / 497.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.1225, allocations: 37.38 kB / 497.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.1227, allocations: 43.94 kB / 497.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008371/0.1235, allocations: 0.6287 MB / 497.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1235, allocations: 0 / 497.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.215e-05/0.1236, allocations: 20 kB / 497.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.1237, allocations: 24.98 kB / 497.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006921/0.1244, allocations: 491.4 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002976/0.1274, allocations: 2.88 MB / 0.4895 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/0.1278, allocations: 244.8 kB / 0.4898 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.128, allocations: 145.7 kB / 0.4899 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.128, allocations: 7.984 kB / 0.4899 GB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.1281, allocations: 42.55 kB / 0.4899 GB, free: 9.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.1281, allocations: 0 / 0.4899 GB, free: 9.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001489/0.1296, allocations: 0.9667 MB / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.1296, allocations: 81.11 kB / 0.491 GB, free: 8.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.1299, allocations: 320.4 kB / 0.4913 GB, free: 7.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.13, allocations: 29.7 kB / 0.4913 GB, free: 7.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.1301, allocations: 275.3 kB / 0.4916 GB, free: 7.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.408e-05/0.1302, allocations: 94.64 kB / 0.4916 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.1304, allocations: 98.28 kB / 0.4917 GB, free: 7.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1305, allocations: 350.7 kB / 0.4921 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.1307, allocations: 145 kB / 0.4922 GB, free: 6.918 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.1311, allocations: 339.2 kB / 0.4925 GB, free: 6.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.1317, allocations: 0.5245 MB / 0.493 GB, free: 5.879 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1317, allocations: 0 / 0.493 GB, free: 5.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007846/0.1325, allocations: 0.5286 MB / 0.4936 GB, free: 5.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1325, allocations: 8.188 kB / 0.4936 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.1326, allocations: 8 kB / 0.4936 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.1326, allocations: 12 kB / 0.4936 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004063/0.133, allocations: 119.8 kB / 0.4937 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.133, allocations: 15.88 kB / 0.4937 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.1333, allocations: 31.92 kB / 0.4938 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.1333, allocations: 27.92 kB / 0.4938 GB, free: 5.125 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.0002271/0.1336, allocations: 222 kB / 0.494 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-05/0.1336, allocations: 31.62 kB / 0.494 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005883/0.1342, allocations: 357.6 kB / 0.4944 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1342, allocations: 4 kB / 0.4944 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1342, allocations: 4 kB / 0.4944 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1343, allocations: 3.984 kB / 0.4944 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.1356, allocations: 0.88 MB / 0.4952 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-06/0.1356, allocations: 4 kB / 0.4952 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.1359, allocations: 67.95 kB / 0.4953 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.1359, allocations: 7.938 kB / 0.4953 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.136, allocations: 11.94 kB / 0.4953 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.136, allocations: 0 / 0.4953 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.136, allocations: 4 kB / 0.4953 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.1367, allocations: 0.5896 MB / 0.4959 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.429e-05/0.1368, allocations: 104.7 kB / 0.496 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.117e-05/0.1369, allocations: 15.88 kB / 0.496 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.137, allocations: 12.03 kB / 0.496 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.1371, allocations: 19.97 kB / 0.496 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.1371, allocations: 12 kB / 0.4961 GB, free: 2.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002076/0.1373, allocations: 219 kB / 0.4963 GB, free: 2.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1373, allocations: 4 kB / 0.4963 GB, free: 2.445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004778/0.1378, allocations: 92 kB / 0.4964 GB, free: 2.355 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.001036/0.1389, allocations: 1.13 MB / 0.4975 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005276/0.1394, allocations: 365.2 kB / 0.4978 GB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.1394, allocations: 0 / 0.4978 GB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.1396, allocations: 143.8 kB / 0.4979 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.1401, allocations: 76.84 kB / 0.498 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.1446, allocations: 3.972 MB / 0.5019 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.145, allocations: 0.8619 MB / 0.5027 GB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002977/0.1453, allocations: 131.1 kB / 0.5029 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.1455, allocations: 139.4 kB / 0.503 GB, free: 11.21 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1456, allocations: 3.938 kB / 0.503 GB, free: 11.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.1723, allocations: 7.184 MB / 0.51 GB, free: 3.961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/7.736, allocations: 16 kB / 0.51 GB, free: 3.945 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)