Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001288/0.001288, allocations: 106 kB / 17.06 MB, free: 6.016 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.001233/0.001233, allocations: 195 kB / 18 MB, free: 5.094 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.327/1.327, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1672/0.1672, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001391/0.001391, allocations: 67.91 kB / 431.3 MB, free: 16.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.0877, allocations: 55.24 MB / 486.6 MB, free: 8.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005754/0.09348, allocations: 4.416 MB / 491 MB, free: 4.434 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.09586, allocations: 1.481 MB / 492.5 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/0.09613, allocations: 15.88 kB / 492.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.09716, allocations: 370.5 kB / 492.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005906/0.09777, allocations: 250.8 kB / 493.1 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.09838, allocations: 243.4 kB / 493.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006496/0.09904, allocations: 0.5534 MB / 493.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.09952, allocations: 289.3 kB / 494.2 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005094/0.1, allocations: 259 kB / 494.4 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00062/0.1007, allocations: 358.9 kB / 494.8 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.235e-05/0.1008, allocations: 40 kB / 494.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.1013, allocations: 231.6 kB / 495 MB, free: 388 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000271/0.1016, allocations: 235.5 kB / 495.3 MB, free: 152 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.102, allocations: 262.8 kB / 495.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008291/0.1028, allocations: 0.6658 MB / 496.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1028, allocations: 4 kB / 496.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1029, allocations: 4 kB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.1029, allocations: 0 / 496.2 MB, free: 15.21 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001411/0.1043, allocations: 0.7738 MB / 497 MB, free: 14.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1044, allocations: 15.89 kB / 497 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.534e-05/0.1045, allocations: 82.7 kB / 497.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005489/0.105, allocations: 88.22 kB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.1057, allocations: 427.2 kB / 497.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.1057, allocations: 33.38 kB / 497.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1059, allocations: 43.94 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009664/0.1069, allocations: 0.6726 MB / 498.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.1069, allocations: 11.94 kB / 498.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.107, allocations: 19.98 kB / 498.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001649/0.1071, allocations: 48.97 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009407/0.1081, allocations: 0.6752 MB / 499.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/0.1113, allocations: 2.505 MB / 0.4898 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005014/0.1119, allocations: 337.3 kB / 0.4902 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.1121, allocations: 229.7 kB / 0.4904 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.199e-05/0.1122, allocations: 12.19 kB / 0.4904 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1122, allocations: 38.55 kB / 0.4904 GB, free: 8.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.1122, allocations: 0 / 0.4904 GB, free: 8.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001911/0.1141, allocations: 1.349 MB / 0.4917 GB, free: 7.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.1142, allocations: 81.11 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.1145, allocations: 308.4 kB / 0.4921 GB, free: 7.121 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1145, allocations: 29.7 kB / 0.4921 GB, free: 7.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.1147, allocations: 255.5 kB / 0.4924 GB, free: 6.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.1148, allocations: 149.8 kB / 0.4925 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1149, allocations: 94.16 kB / 0.4926 GB, free: 6.578 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1151, allocations: 354.8 kB / 0.493 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.1153, allocations: 205 kB / 0.4932 GB, free: 6.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003669/0.1157, allocations: 369 kB / 0.4935 GB, free: 5.594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006832/0.1164, allocations: 0.6058 MB / 0.4941 GB, free: 4.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1164, allocations: 0 / 0.4941 GB, free: 4.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009193/0.1173, allocations: 0.6306 MB / 0.4947 GB, free: 4.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1174, allocations: 8 kB / 0.4947 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.1174, allocations: 4 kB / 0.4947 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.1174, allocations: 11.98 kB / 0.4947 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.1178, allocations: 115.8 kB / 0.4948 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.1179, allocations: 8 kB / 0.4949 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.1181, allocations: 23.98 kB / 0.4949 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.1182, allocations: 27.98 kB / 0.4949 GB, free: 4.086 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.000226/0.1184, allocations: 217.9 kB / 0.4951 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.891e-05/0.1185, allocations: 39.47 kB / 0.4951 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000774/0.1193, allocations: 0.4926 MB / 0.4956 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.1193, allocations: 12 kB / 0.4956 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1193, allocations: 4 kB / 0.4956 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1193, allocations: 3.984 kB / 0.4956 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.121, allocations: 1.101 MB / 0.4967 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.121, allocations: 0 / 0.4967 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.1213, allocations: 67.89 kB / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1214, allocations: 4 kB / 0.4968 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.1214, allocations: 12 kB / 0.4968 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1214, allocations: 4 kB / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.1214, allocations: 0 / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009437/0.1224, allocations: 0.8398 MB / 0.4976 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.024e-05/0.1224, allocations: 108.6 kB / 0.4977 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.1225, allocations: 15.97 kB / 0.4977 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1227, allocations: 19.98 kB / 0.4978 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.1228, allocations: 27.91 kB / 0.4978 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.1228, allocations: 8 kB / 0.4978 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001923/0.123, allocations: 215 kB / 0.498 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.123, allocations: 4 kB / 0.498 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000473/0.1235, allocations: 112 kB / 0.4981 GB, free: 0.6719 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001393/0.1249, allocations: 1.385 MB / 0.4995 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.1256, allocations: 0.4955 MB / 0.4999 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1256, allocations: 0 / 0.4999 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.1259, allocations: 221.3 kB / 0.5002 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.1264, allocations: 84.88 kB / 0.5002 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005155/0.1315, allocations: 4.381 MB / 0.5045 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004854/0.1321, allocations: 0.8743 MB / 0.5054 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003012/0.1324, allocations: 123.2 kB / 0.5055 GB, free: 8.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.1326, allocations: 139.4 kB / 0.5056 GB, free: 8.668 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1326, allocations: 0 / 0.5056 GB, free: 8.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.159, allocations: 8.002 MB / 0.5134 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/7.898, allocations: 15.94 kB / 0.5135 GB, free: 0.5938 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)