Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 109.4 kB / 17.06 MB, free: 6.023 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.001212/0.001212, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1797/0.1797, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 63.89 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3336, allocations: 58.04 MB / 0.5041 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004331/0.338, allocations: 3.31 MB / 0.5073 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.3395, allocations: 1.225 MB / 0.5085 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.3396, allocations: 9.812 kB / 0.5085 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005582/0.3402, allocations: 159.2 kB / 0.5087 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003715/0.3406, allocations: 172.8 kB / 0.5088 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.3408, allocations: 136.3 kB / 0.509 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.3412, allocations: 285.9 kB / 0.5092 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.3414, allocations: 127.1 kB / 0.5094 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.3416, allocations: 132.4 kB / 0.5095 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.3418, allocations: 110.1 kB / 0.5096 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.3418, allocations: 17.69 kB / 0.5096 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000315/0.3421, allocations: 225 kB / 0.5098 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.315e-05/0.3422, allocations: 61.72 kB / 0.5099 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.3423, allocations: 97.62 kB / 0.51 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.3427, allocations: 286.4 kB / 0.5102 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3427, allocations: 0.7031 kB / 0.5102 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3428, allocations: 0 / 0.5102 GB, free: 3.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3428, allocations: 0 / 0.5102 GB, free: 3.844 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005286/0.3433, allocations: 0.5041 MB / 0.5107 GB, free: 3.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.3433, allocations: 13.05 kB / 0.5107 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007032/0.344, allocations: 77.98 kB / 0.5108 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.3444, allocations: 268.3 kB / 0.5111 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.3444, allocations: 11.3 kB / 0.5111 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.3445, allocations: 19.05 kB / 0.5111 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004321/0.3449, allocations: 275.2 kB / 0.5114 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3449, allocations: 1.438 kB / 0.5114 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.345, allocations: 10.73 kB / 0.5114 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.345, allocations: 12.36 kB / 0.5114 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.3454, allocations: 223.6 kB / 0.5116 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.347, allocations: 1.203 MB / 0.5128 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.3472, allocations: 138.8 kB / 0.5129 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.793e-05/0.3473, allocations: 49.64 kB / 0.513 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.3474, allocations: 2.094 kB / 0.513 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.3474, allocations: 36.97 kB / 0.513 GB, free: 1.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.684e-06/0.3474, allocations: 3.938 kB / 0.513 GB, free: 1.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003825/0.3478, allocations: 163.1 kB / 0.5132 GB, free: 1.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.3478, allocations: 82.89 kB / 0.5132 GB, free: 1.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.348, allocations: 206 kB / 0.5134 GB, free: 1.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.348, allocations: 30.8 kB / 0.5135 GB, free: 1.383 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.3481, allocations: 151.1 kB / 0.5136 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.3481, allocations: 53.31 kB / 0.5137 GB, free: 1.207 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/0.3482, allocations: 38.55 kB / 0.5137 GB, free: 1.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.032e-05/0.3483, allocations: 329.6 kB / 0.514 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.59e-05/0.3483, allocations: 41.47 kB / 0.514 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.3485, allocations: 122.6 kB / 0.5142 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.3486, allocations: 185.3 kB / 0.5143 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3487, allocations: 1.375 kB / 0.5143 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002801/0.3489, allocations: 212.6 kB / 0.5145 GB, free: 484 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.349, allocations: 13.41 kB / 0.5146 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.349, allocations: 7.391 kB / 0.5146 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.349, allocations: 7.656 kB / 0.5146 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.3492, allocations: 50.08 kB / 0.5146 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009383/0.3502, allocations: 1.414 MB / 0.516 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.3503, allocations: 18.3 kB / 0.516 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.3503, allocations: 7.656 kB / 0.516 GB, free: 14.99 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.3505, allocations: 152.5 kB / 0.5162 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.3506, allocations: 20.03 kB / 0.5162 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/0.3508, allocations: 135.7 kB / 0.5163 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3508, allocations: 1.875 kB / 0.5163 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.3508, allocations: 1.312 kB / 0.5163 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3509, allocations: 0.7031 kB / 0.5163 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007651/0.3516, allocations: 0.4917 MB / 0.5168 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.3516, allocations: 1.5 kB / 0.5168 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002/0.3519, allocations: 36.5 kB / 0.5168 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.3519, allocations: 7.078 kB / 0.5168 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3519, allocations: 3.672 kB / 0.5169 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000883/0.3528, allocations: 1.421 MB / 0.5182 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3528, allocations: 1.344 kB / 0.5182 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.3531, allocations: 300.9 kB / 0.5185 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.085e-05/0.3532, allocations: 96.86 kB / 0.5186 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.3533, allocations: 6.594 kB / 0.5186 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3534, allocations: 1.219 kB / 0.5186 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.3534, allocations: 17.36 kB / 0.5186 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.3534, allocations: 4.125 kB / 0.5186 GB, free: 12.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.3536, allocations: 151.8 kB / 0.5188 GB, free: 12.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3536, allocations: 0 / 0.5188 GB, free: 12.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003525/0.354, allocations: 46.75 kB / 0.5188 GB, free: 12.45 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001234/0.3541, allocations: 97.84 kB / 0.5189 GB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.3544, allocations: 134.5 kB / 0.5191 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3544, allocations: 128 / 0.5191 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.3546, allocations: 65.5 kB / 0.5191 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.3551, allocations: 35.52 kB / 0.5192 GB, free: 12.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.3561, allocations: 0.5052 MB / 0.5196 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.3565, allocations: 0.7436 MB / 0.5204 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3566, allocations: 34.33 kB / 0.5204 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.3566, allocations: 18.3 kB / 0.5204 GB, free: 11.21 MB / 398.1 MB Notification: Performance of SimCode: time 2.865e-06/0.3567, allocations: 0 / 0.5204 GB, free: 11.21 MB / 398.1 MB Notification: Performance of Templates: time 0.004647/0.3613, allocations: 1.534 MB / 0.5219 GB, free: 11.05 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)