Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00226/0.00226, allocations: 173.4 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00081/0.0008102, allocations: 90.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1772/0.1772, allocations: 38.07 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 56.33 MB / 479.1 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006593/0.1215, allocations: 6.515 MB / 485.6 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.1254, allocations: 2.246 MB / 487.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000405/0.1258, allocations: 47.69 kB / 487.9 MB, free: 9.199 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.1262, allocations: 142.9 kB / 488 MB, free: 9.059 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009066/0.1271, allocations: 445.8 kB / 488.4 MB, free: 8.621 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009541/0.128, allocations: 391.3 kB / 488.8 MB, free: 8.238 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.1291, allocations: 1.162 MB / 490 MB, free: 7.074 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001263/0.1304, allocations: 0.7845 MB / 490.8 MB, free: 6.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004894/0.1309, allocations: 346.4 kB / 491.1 MB, free: 5.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006563/0.1316, allocations: 0.5259 MB / 491.6 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.982e-05/0.1316, allocations: 32 kB / 491.7 MB, free: 5.371 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003719/0.132, allocations: 147.8 kB / 491.8 MB, free: 5.227 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003383/0.1324, allocations: 395 kB / 492.2 MB, free: 4.84 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1325, allocations: 173.3 kB / 492.4 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007052/0.1332, allocations: 0.7443 MB / 493.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1333, allocations: 0 / 493.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1333, allocations: 0 / 493.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1333, allocations: 0 / 493.1 MB, free: 3.918 MB / 330.7 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.001475/0.1348, allocations: 0.9428 MB / 494.1 MB, free: 2.926 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.1348, allocations: 8.031 kB / 494.1 MB, free: 2.918 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006459/0.1355, allocations: 134.9 kB / 494.2 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000741/0.1362, allocations: 0.4999 MB / 494.7 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.1363, allocations: 65.98 kB / 494.8 MB, free: 2.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.1364, allocations: 72 kB / 494.8 MB, free: 2.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.1379, allocations: 1.122 MB / 495.9 MB, free: 0.875 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.1379, allocations: 7.938 kB / 496 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-05/0.138, allocations: 35.95 kB / 496 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/0.1381, allocations: 57.97 kB / 496 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.1393, allocations: 0.8584 MB / 496.9 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004847/0.1442, allocations: 5.059 MB / 0.4902 GB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.1448, allocations: 420.6 kB / 0.4906 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.1451, allocations: 205.7 kB / 0.4908 GB, free: 9.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.1451, allocations: 11.98 kB / 0.4908 GB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.1452, allocations: 42.55 kB / 0.4908 GB, free: 9.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1452, allocations: 4 kB / 0.4909 GB, free: 9.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=44): time 0.001551/0.1467, allocations: 1.063 MB / 0.4919 GB, free: 8.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.1468, allocations: 88.98 kB / 0.492 GB, free: 8.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004612/0.1473, allocations: 0.4938 MB / 0.4925 GB, free: 8.242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.1473, allocations: 33.7 kB / 0.4925 GB, free: 8.203 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.1476, allocations: 449.8 kB / 0.4929 GB, free: 7.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.1477, allocations: 157.8 kB / 0.4931 GB, free: 7.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.1477, allocations: 16.12 kB / 0.4931 GB, free: 7.586 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1479, allocations: 370.8 kB / 0.4934 GB, free: 7.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.1482, allocations: 233.8 kB / 0.4937 GB, free: 6.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.1488, allocations: 0.6171 MB / 0.4943 GB, free: 6.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.1493, allocations: 357.3 kB / 0.4946 GB, free: 5.832 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1493, allocations: 4 kB / 0.4946 GB, free: 5.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001173/0.1505, allocations: 0.8924 MB / 0.4955 GB, free: 4.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1505, allocations: 12.25 kB / 0.4955 GB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1505, allocations: 16 kB / 0.4955 GB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1505, allocations: 20 kB / 0.4955 GB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006672/0.1512, allocations: 215.6 kB / 0.4957 GB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.1512, allocations: 35.81 kB / 0.4958 GB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.1516, allocations: 51.88 kB / 0.4958 GB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-05/0.1517, allocations: 43.98 kB / 0.4959 GB, free: 4.543 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003132/0.152, allocations: 301.4 kB / 0.4961 GB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.235e-05/0.1521, allocations: 51.34 kB / 0.4962 GB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008191/0.1529, allocations: 0.564 MB / 0.4967 GB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1529, allocations: 4 kB / 0.4967 GB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1529, allocations: 4 kB / 0.4968 GB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1529, allocations: 7.938 kB / 0.4968 GB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.1548, allocations: 1.327 MB / 0.4981 GB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1548, allocations: 0 / 0.4981 GB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.1552, allocations: 107.9 kB / 0.4982 GB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.1552, allocations: 7.938 kB / 0.4982 GB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.1553, allocations: 15.98 kB / 0.4982 GB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.1553, allocations: 7.938 kB / 0.4982 GB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1553, allocations: 4 kB / 0.4982 GB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007142/0.156, allocations: 0.6442 MB / 0.4988 GB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.983e-05/0.1561, allocations: 128.4 kB / 0.4989 GB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.1562, allocations: 19.98 kB / 0.499 GB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.1564, allocations: 15.98 kB / 0.499 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.1565, allocations: 35.91 kB / 0.499 GB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.1565, allocations: 20 kB / 0.499 GB, free: 1.129 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003279/0.1568, allocations: 326.8 kB / 0.4993 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1569, allocations: 0 / 0.4993 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005927/0.1575, allocations: 164 kB / 0.4995 GB, free: 0.6523 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000114/0.1576, allocations: 119.4 kB / 0.4996 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.1583, allocations: 0.5937 MB / 0.5002 GB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.713e-05/0.1584, allocations: 4 kB / 0.5002 GB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000306/0.1587, allocations: 241.1 kB / 0.5004 GB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005679/0.1593, allocations: 110.3 kB / 0.5005 GB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.1613, allocations: 1.713 MB / 0.5022 GB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005472/0.1619, allocations: 0.996 MB / 0.5032 GB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.162, allocations: 59.42 kB / 0.5032 GB, free: 12.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.162, allocations: 0 / 0.5032 GB, free: 12.73 MB / 362.7 MB Notification: Performance of Templates: time 0.01084/0.1729, allocations: 8.152 MB / 0.5112 GB, free: 4.57 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.Units --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.Units.pipe 2>&1)