Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.001255/0.001255, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.00125/0.001251, allocations: 198.9 kB / 18 MB, free: 5.082 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.47/1.47, 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.2039/0.2039, allocations: 37.98 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.001707/0.001707, allocations: 75.88 kB / 431.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1145, allocations: 55.24 MB / 486.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007646/0.1222, allocations: 6.099 MB / 492.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.1258, allocations: 1.995 MB / 494.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006529/0.1265, allocations: 23.88 kB / 494.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.1286, allocations: 0.693 MB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.1299, allocations: 378.1 kB / 495.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1311, allocations: 411 kB / 496.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.1325, allocations: 0.9316 MB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009048/0.1334, allocations: 0.4961 MB / 497.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008893/0.1343, allocations: 434.4 kB / 498 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009429/0.1353, allocations: 0.5334 MB / 498.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.1354, allocations: 56 kB / 498.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000581/0.136, allocations: 239.6 kB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004647/0.1365, allocations: 415.1 kB / 499.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006372/0.1371, allocations: 426 kB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.1383, allocations: 1.016 MB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1384, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1384, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.091e-05/0.1384, allocations: 0 / 0.4889 GB, free: 10.71 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002023/0.1404, allocations: 1.068 MB / 0.49 GB, free: 9.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1405, allocations: 11.89 kB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001713/0.1407, allocations: 135.3 kB / 0.4901 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007005/0.1414, allocations: 139.8 kB / 0.4903 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008793/0.1423, allocations: 0.5439 MB / 0.4908 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.1423, allocations: 66.36 kB / 0.4909 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1425, allocations: 75.94 kB / 0.4909 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.1441, allocations: 1.134 MB / 0.492 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.1441, allocations: 7.844 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-05/0.1442, allocations: 36 kB / 0.4921 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.162e-05/0.1443, allocations: 45.98 kB / 0.4921 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1456, allocations: 0.8701 MB / 0.493 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005378/0.151, allocations: 5.035 MB / 0.4979 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006665/0.1517, allocations: 417 kB / 0.4983 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.152, allocations: 209.7 kB / 0.4985 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.783e-05/0.1521, allocations: 11.97 kB / 0.4985 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.1521, allocations: 42.5 kB / 0.4985 GB, free: 428 kB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.235e-06/0.1521, allocations: 0 / 0.4985 GB, free: 428 kB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001862/0.154, allocations: 1.075 MB / 0.4996 GB, free: 15.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.1541, allocations: 85.09 kB / 0.4997 GB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.1546, allocations: 497.8 kB / 0.5001 GB, free: 14.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.1547, allocations: 33.7 kB / 0.5002 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.155, allocations: 461.6 kB / 0.5006 GB, free: 14.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.1551, allocations: 153.8 kB / 0.5008 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.1553, allocations: 150.5 kB / 0.5009 GB, free: 13.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1554, allocations: 374.8 kB / 0.5013 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.1558, allocations: 241.8 kB / 0.5015 GB, free: 13.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006298/0.1564, allocations: 0.6209 MB / 0.5021 GB, free: 12.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.1576, allocations: 0.9455 MB / 0.503 GB, free: 11.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/0.1576, allocations: 4 kB / 0.503 GB, free: 11.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001307/0.159, allocations: 0.8922 MB / 0.5039 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.159, allocations: 12 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.159, allocations: 15.98 kB / 0.5039 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.1591, allocations: 20 kB / 0.5039 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006854/0.1597, allocations: 211.6 kB / 0.5041 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.844e-05/0.1598, allocations: 27.92 kB / 0.5042 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004365/0.1602, allocations: 51.95 kB / 0.5042 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/0.1603, allocations: 44.16 kB / 0.5043 GB, free: 10.1 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0004477/0.1608, allocations: 309.3 kB / 0.5046 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.592e-05/0.1609, allocations: 55.25 kB / 0.5046 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009362/0.1618, allocations: 0.5602 MB / 0.5052 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1618, allocations: 4 kB / 0.5052 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1618, allocations: 0 / 0.5052 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.1618, allocations: 3.984 kB / 0.5052 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.1638, allocations: 1.331 MB / 0.5065 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1639, allocations: 8.25 kB / 0.5065 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.1643, allocations: 115.8 kB / 0.5066 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.1644, allocations: 7.938 kB / 0.5066 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.1644, allocations: 8 kB / 0.5066 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.1644, allocations: 4 kB / 0.5066 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.1644, allocations: 11.92 kB / 0.5066 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.1652, allocations: 0.6458 MB / 0.5072 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.1654, allocations: 132.3 kB / 0.5074 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.942e-05/0.1655, allocations: 20 kB / 0.5074 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.1658, allocations: 15.98 kB / 0.5074 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.1658, allocations: 35.89 kB / 0.5074 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.809e-05/0.1659, allocations: 16 kB / 0.5075 GB, free: 6.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003716/0.1662, allocations: 330.8 kB / 0.5078 GB, free: 6.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1663, allocations: 4 kB / 0.5078 GB, free: 6.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007224/0.167, allocations: 156 kB / 0.5079 GB, free: 6.191 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.001077/0.1681, allocations: 1.201 MB / 0.5091 GB, free: 4.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009181/0.169, allocations: 0.6103 MB / 0.5097 GB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.169, allocations: 0 / 0.5097 GB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.1693, allocations: 232.6 kB / 0.5099 GB, free: 4.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006846/0.17, allocations: 129.7 kB / 0.51 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007536/0.1776, allocations: 5.775 MB / 0.5157 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.1782, allocations: 1.003 MB / 0.5167 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004907/0.1787, allocations: 221 kB / 0.5169 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.1791, allocations: 255.3 kB / 0.5171 GB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1791, allocations: 0 / 0.5171 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.2118, allocations: 11.52 MB / 0.5284 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.009/8.221, allocations: 8 kB / 0.5284 GB, free: 0.6133 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)