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.001168/0.001173, allocations: 113.2 kB / 17.06 MB, free: 5.977 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.001118/0.001118, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.4/1.4, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.209/0.209, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.001353/0.001353, allocations: 75.88 kB / 431.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007416/0.1091, allocations: 6.103 MB / 492.7 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003833/0.1129, allocations: 1.995 MB / 494.7 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007472/0.1137, allocations: 23.81 kB / 494.7 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.1161, allocations: 0.6813 MB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.1172, allocations: 378.3 kB / 495.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.1185, allocations: 407.1 kB / 496.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001577/0.1201, allocations: 0.9353 MB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009247/0.121, allocations: 0.504 MB / 497.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009106/0.1219, allocations: 430.3 kB / 498 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.123, allocations: 0.5257 MB / 498.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.1232, allocations: 63.94 kB / 498.6 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006497/0.1238, allocations: 239.6 kB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005287/0.1244, allocations: 415.1 kB / 499.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007995/0.1252, allocations: 422 kB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1267, allocations: 1.02 MB / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.1267, allocations: 0 / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1267, allocations: 0 / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.415e-05/0.1268, allocations: 0 / 0.4889 GB, free: 10.7 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.002488/0.1293, allocations: 1.075 MB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1293, allocations: 11.89 kB / 0.49 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001742/0.1295, allocations: 131.3 kB / 0.4901 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/0.1302, allocations: 139.8 kB / 0.4903 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1314, allocations: 0.544 MB / 0.4908 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.1315, allocations: 58.38 kB / 0.4908 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.1316, allocations: 75.94 kB / 0.4909 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.1334, allocations: 1.13 MB / 0.492 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.286e-05/0.1334, allocations: 19.77 kB / 0.492 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.72e-05/0.1335, allocations: 32 kB / 0.4921 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.554e-05/0.1336, allocations: 45.98 kB / 0.4921 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.1352, allocations: 0.8662 MB / 0.493 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005918/0.1411, allocations: 5.043 MB / 0.4979 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006644/0.1418, allocations: 416.9 kB / 0.4983 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.1421, allocations: 213.7 kB / 0.4985 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.1421, allocations: 7.984 kB / 0.4985 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.1422, allocations: 38.56 kB / 0.4985 GB, free: 424 kB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 3.807e-06/0.1422, allocations: 4 kB / 0.4985 GB, free: 420 kB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001809/0.144, allocations: 1.071 MB / 0.4996 GB, free: 15.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.144, allocations: 81.11 kB / 0.4997 GB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.1446, allocations: 0.49 MB / 0.5001 GB, free: 14.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.1446, allocations: 37.64 kB / 0.5002 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.1449, allocations: 457.7 kB / 0.5006 GB, free: 14.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.1451, allocations: 157.8 kB / 0.5008 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.1453, allocations: 150.6 kB / 0.5009 GB, free: 13.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1454, allocations: 374.7 kB / 0.5013 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003665/0.1458, allocations: 237.8 kB / 0.5015 GB, free: 13.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005841/0.1464, allocations: 0.6171 MB / 0.5021 GB, free: 12.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.1475, allocations: 0.9377 MB / 0.503 GB, free: 11.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.1476, allocations: 4 kB / 0.503 GB, free: 11.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001352/0.1489, allocations: 0.896 MB / 0.5039 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.149, allocations: 12 kB / 0.5039 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.149, allocations: 12 kB / 0.5039 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.149, allocations: 20 kB / 0.5039 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/0.1497, allocations: 215.6 kB / 0.5041 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.657e-05/0.1498, allocations: 31.86 kB / 0.5042 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/0.1502, allocations: 48.22 kB / 0.5042 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.094e-05/0.1503, allocations: 55.92 kB / 0.5043 GB, free: 10.09 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.0003239/0.1506, allocations: 297.4 kB / 0.5045 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.205e-05/0.1507, allocations: 67.23 kB / 0.5046 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000895/0.1516, allocations: 0.5563 MB / 0.5052 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1516, allocations: 4 kB / 0.5052 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1516, allocations: 0 / 0.5052 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.1516, allocations: 11.98 kB / 0.5052 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.1538, allocations: 1.327 MB / 0.5065 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.1538, allocations: 8.031 kB / 0.5065 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.1542, allocations: 107.9 kB / 0.5066 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.1543, allocations: 11.92 kB / 0.5066 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.1543, allocations: 8 kB / 0.5066 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.1543, allocations: 4 kB / 0.5066 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.1543, allocations: 7.938 kB / 0.5066 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007693/0.1551, allocations: 0.6535 MB / 0.5072 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.1552, allocations: 136.3 kB / 0.5074 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.867e-05/0.1553, allocations: 15.98 kB / 0.5074 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.1556, allocations: 15.98 kB / 0.5074 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.1556, allocations: 31.95 kB / 0.5074 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.1556, allocations: 16 kB / 0.5075 GB, free: 6.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000322/0.156, allocations: 334.8 kB / 0.5078 GB, free: 6.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.156, allocations: 0 / 0.5078 GB, free: 6.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006373/0.1566, allocations: 156 kB / 0.5079 GB, free: 6.188 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.0009973/0.1576, allocations: 1.205 MB / 0.5091 GB, free: 4.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008453/0.1585, allocations: 0.6062 MB / 0.5097 GB, free: 4.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1585, allocations: 0 / 0.5097 GB, free: 4.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.1588, allocations: 244.8 kB / 0.5099 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006451/0.1595, allocations: 117.7 kB / 0.51 GB, free: 3.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.1664, 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.0006185/0.167, allocations: 0.9995 MB / 0.5167 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.1675, allocations: 228.9 kB / 0.5169 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.1679, allocations: 255.3 kB / 0.5171 GB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1679, allocations: 0 / 0.5171 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0324/0.2003, allocations: 11.51 MB / 0.5284 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.614/8.815, allocations: 11.98 kB / 0.5284 GB, free: 0.6094 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)