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.001706/0.001706, allocations: 173 kB / 16.76 MB, free: 5.051 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.192/2.192, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.001057/0.001057, allocations: 78.42 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3522/0.3522, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005008, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3844, allocations: 56.32 MB / 480.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.5888, allocations: 99.44 MB / 0.5661 GB, free: 2.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.5892, allocations: 83.95 kB / 0.5662 GB, free: 2.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09183/0.681, allocations: 19.28 MB / 0.585 GB, free: 15.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6811, allocations: 4 kB / 0.585 GB, free: 15.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.992e-05/0.6812, allocations: 16 kB / 0.585 GB, free: 15.32 MB / 426.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.002628/0.6838, allocations: 0.944 MB / 0.586 GB, free: 14.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.6839, allocations: 16.02 kB / 0.586 GB, free: 14.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.685, allocations: 135.8 kB / 0.5861 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.6871, allocations: 0.6687 MB / 0.5868 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.936e-05/0.6872, allocations: 59.12 kB / 0.5868 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.6874, allocations: 76 kB / 0.5869 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002685/0.6901, allocations: 1.103 MB / 0.588 GB, free: 12.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.6902, allocations: 11.84 kB / 0.588 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.6903, allocations: 32 kB / 0.588 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.6904, allocations: 49.98 kB / 0.588 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.6927, allocations: 0.8038 MB / 0.5888 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00907/0.7018, allocations: 5.008 MB / 0.5937 GB, free: 5.996 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.703, allocations: 405.9 kB / 0.5941 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005444/0.7036, allocations: 210.4 kB / 0.5943 GB, free: 5.367 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.7037, allocations: 12.33 kB / 0.5943 GB, free: 5.355 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/0.7037, allocations: 38.89 kB / 0.5944 GB, free: 5.309 MB / 426.7 MB Notification: Performance of pre-optimization done (n=47): time 5.139e-06/0.7038, allocations: 0 / 0.5944 GB, free: 5.309 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.003395/0.7072, allocations: 1.096 MB / 0.5954 GB, free: 4.207 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.7073, allocations: 85.11 kB / 0.5955 GB, free: 4.105 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00098/0.7083, allocations: 497.8 kB / 0.596 GB, free: 3.609 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.7083, allocations: 33.7 kB / 0.596 GB, free: 3.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004623/0.7088, allocations: 449.9 kB / 0.5964 GB, free: 3.125 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.7091, allocations: 177.6 kB / 0.5966 GB, free: 2.949 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.7091, allocations: 16 kB / 0.5966 GB, free: 2.934 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.7094, allocations: 366.8 kB / 0.597 GB, free: 2.566 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006531/0.7101, allocations: 241.8 kB / 0.5972 GB, free: 2.328 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.7112, allocations: 0.6206 MB / 0.5978 GB, free: 1.516 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.7131, allocations: 0.9361 MB / 0.5987 GB, free: 404 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/0.7131, allocations: 4 kB / 0.5987 GB, free: 400 kB / 426.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.0025/0.7156, allocations: 0.9146 MB / 0.5996 GB, free: 15.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.7157, allocations: 15.94 kB / 0.5996 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/0.7157, allocations: 16 kB / 0.5997 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.122e-05/0.7158, allocations: 20 kB / 0.5997 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.7171, allocations: 195.7 kB / 0.5999 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.327e-05/0.7171, allocations: 28.36 kB / 0.5999 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008843/0.718, allocations: 47.97 kB / 0.5999 GB, free: 15.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.7182, allocations: 44 kB / 0.6 GB, free: 15.11 MB / 442.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 (97): * Single equations (assignments): 95 * Array equations: 2 * 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.0006605/0.7188, allocations: 313.2 kB / 0.6003 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.719, allocations: 55.28 kB / 0.6003 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.7207, allocations: 0.5578 MB / 0.6009 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.035e-05/0.7207, allocations: 12 kB / 0.6009 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.7207, allocations: 0 / 0.6009 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.7208, allocations: 3.984 kB / 0.6009 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/0.7244, allocations: 1.342 MB / 0.6022 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.7244, allocations: 0 / 0.6022 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.7252, allocations: 103.8 kB / 0.6023 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/0.7252, allocations: 8 kB / 0.6023 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.469e-05/0.7253, allocations: 19.92 kB / 0.6023 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.755e-05/0.7254, allocations: 4 kB / 0.6023 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.7254, allocations: 4 kB / 0.6023 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.7269, allocations: 0.6734 MB / 0.603 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.7271, allocations: 124.4 kB / 0.6031 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.7273, allocations: 12 kB / 0.6031 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005071/0.7278, allocations: 23.97 kB / 0.6031 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.7279, allocations: 43.81 kB / 0.6032 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.345e-05/0.728, allocations: 16 kB / 0.6032 GB, free: 11.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006482/0.7287, allocations: 326.8 kB / 0.6035 GB, free: 11.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7287, allocations: 4 kB / 0.6035 GB, free: 11.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0014/0.7301, allocations: 184 kB / 0.6037 GB, free: 11.15 MB / 442.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 (48): * Single equations (assignments): 45 * Array equations: 2 * 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.0003425/0.7305, allocations: 139.1 kB / 0.6038 GB, free: 11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.7322, allocations: 0.6186 MB / 0.6044 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.7322, allocations: 0 / 0.6044 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006486/0.7329, allocations: 252.9 kB / 0.6047 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.7343, allocations: 116.1 kB / 0.6048 GB, free: 10.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.7385, allocations: 1.752 MB / 0.6065 GB, free: 8.207 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.7395, allocations: 0.9996 MB / 0.6075 GB, free: 7.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/0.7399, allocations: 59.42 kB / 0.6075 GB, free: 7.121 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7399, allocations: 0 / 0.6075 GB, free: 7.121 MB / 442.7 MB Notification: Performance of Templates: time 0.02206/0.7619, allocations: 8.348 MB / 0.6157 GB, free: 14.77 MB / 458.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)