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.0012/0.0012, allocations: 105.6 kB / 17.06 MB, free: 6.012 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.001539/0.001539, 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.356/1.356, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1748/0.1748, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.00139/0.00139, allocations: 67.91 kB / 431.3 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1231, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006382/0.1295, allocations: 4.412 MB / 491 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.1323, allocations: 1.481 MB / 492.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002284/0.1325, allocations: 11.94 kB / 492.5 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1337, allocations: 374.5 kB / 492.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006093/0.1343, allocations: 254.8 kB / 493.1 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.135, allocations: 239.4 kB / 493.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006356/0.1357, allocations: 0.5573 MB / 493.9 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004439/0.1361, allocations: 285.2 kB / 494.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000344/0.1365, allocations: 259 kB / 494.4 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005061/0.137, allocations: 359 kB / 494.8 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.137, allocations: 40 kB / 494.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003842/0.1374, allocations: 223.6 kB / 495 MB, free: 376 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.1377, allocations: 243.4 kB / 495.3 MB, free: 132 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.1379, allocations: 262.8 kB / 495.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007332/0.1387, allocations: 0.662 MB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1387, allocations: 0 / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1387, allocations: 0 / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1387, allocations: 4 kB / 496.2 MB, free: 15.2 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.001632/0.1404, allocations: 0.7816 MB / 497 MB, free: 14.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1404, allocations: 11.89 kB / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.1405, allocations: 82.7 kB / 497.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005577/0.1411, allocations: 88.23 kB / 497.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007929/0.1419, allocations: 427.2 kB / 497.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.142, allocations: 37.36 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.1421, allocations: 47.92 kB / 497.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009825/0.1431, allocations: 0.6765 MB / 498.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1431, allocations: 7.938 kB / 498.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/0.1432, allocations: 12 kB / 498.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001756/0.1434, allocations: 48.97 kB / 498.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009987/0.1444, allocations: 0.6752 MB / 499.1 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/0.148, allocations: 2.505 MB / 0.4898 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.1485, allocations: 333.3 kB / 0.4901 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1488, allocations: 229.7 kB / 0.4904 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.1489, allocations: 12.19 kB / 0.4904 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.1489, allocations: 46.48 kB / 0.4904 GB, free: 8.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 3.737e-06/0.1489, allocations: 3.984 kB / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001985/0.1509, allocations: 1.349 MB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.151, allocations: 81.11 kB / 0.4918 GB, free: 7.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.1513, allocations: 300.4 kB / 0.4921 GB, free: 7.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.1513, allocations: 33.7 kB / 0.4921 GB, free: 7.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.1515, allocations: 255.5 kB / 0.4924 GB, free: 6.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.1516, allocations: 157.8 kB / 0.4925 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.1518, allocations: 94.16 kB / 0.4926 GB, free: 6.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1519, allocations: 350.8 kB / 0.493 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.1522, allocations: 201 kB / 0.4931 GB, free: 6.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.1526, allocations: 369 kB / 0.4935 GB, free: 5.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007442/0.1534, allocations: 0.6097 MB / 0.4941 GB, free: 4.895 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1534, allocations: 0 / 0.4941 GB, free: 4.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008905/0.1543, allocations: 0.6307 MB / 0.4947 GB, free: 4.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1543, allocations: 4 kB / 0.4947 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1543, allocations: 11.94 kB / 0.4947 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.1543, allocations: 8 kB / 0.4947 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.1547, allocations: 115.8 kB / 0.4948 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1548, allocations: 8 kB / 0.4949 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.155, allocations: 19.98 kB / 0.4949 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.1551, allocations: 24 kB / 0.4949 GB, free: 4.07 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.0002329/0.1553, allocations: 221.8 kB / 0.4951 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/0.1554, allocations: 43.45 kB / 0.4951 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007829/0.1562, allocations: 0.4965 MB / 0.4956 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/0.1562, allocations: 12 kB / 0.4956 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1562, allocations: 0 / 0.4956 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1562, allocations: 0 / 0.4956 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.158, allocations: 1.101 MB / 0.4967 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.158, allocations: 0 / 0.4967 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.1584, allocations: 75.89 kB / 0.4968 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1584, allocations: 0 / 0.4968 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.1584, allocations: 12 kB / 0.4968 GB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1584, allocations: 3.984 kB / 0.4968 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1584, allocations: 7.938 kB / 0.4968 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.1595, allocations: 0.8321 MB / 0.4976 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.438e-05/0.1596, allocations: 108.6 kB / 0.4977 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.1596, allocations: 15.97 kB / 0.4977 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.1598, allocations: 15.98 kB / 0.4978 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.1599, allocations: 39.84 kB / 0.4978 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.1599, allocations: 8 kB / 0.4978 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.1602, allocations: 211.1 kB / 0.498 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1602, allocations: 0 / 0.498 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004712/0.1606, allocations: 108 kB / 0.4981 GB, free: 0.6523 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.001456/0.1621, allocations: 1.396 MB / 0.4995 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007132/0.1628, allocations: 499.5 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1628, allocations: 0 / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.1631, allocations: 227.8 kB / 0.5002 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.1636, allocations: 82.34 kB / 0.5002 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005185/0.1688, allocations: 4.381 MB / 0.5045 GB, free: 9.801 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.1694, allocations: 0.8704 MB / 0.5054 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003149/0.1697, allocations: 127.1 kB / 0.5055 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.1699, allocations: 143.4 kB / 0.5056 GB, free: 8.637 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1699, allocations: 0 / 0.5056 GB, free: 8.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/0.1998, allocations: 8.005 MB / 0.5134 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.359, allocations: 7.938 kB / 0.5135 GB, free: 0.5664 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)