Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 111 kB / 17.74 MB, free: 5.34 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.001246/0.001246, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.242/1.242, allocations: 205.1 MB / 224.5 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.1642/0.1642, allocations: 37.97 MB / 309.9 MB, free: 5.949 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.001298/0.001298, allocations: 71.03 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08328/0.08459, allocations: 55.25 MB / 487.8 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006036/0.09066, allocations: 4.926 MB / 492.7 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003232/0.09392, allocations: 2.532 MB / 495.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.09424, allocations: 11.94 kB / 495.3 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.09539, allocations: 430.2 kB / 495.7 MB, free: 404 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.09658, allocations: 0.5057 MB / 496.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006889/0.09728, allocations: 283.2 kB / 496.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008542/0.09815, allocations: 0.736 MB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005036/0.09866, allocations: 337.6 kB / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005089/0.09918, allocations: 322.7 kB / 497.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004876/0.09968, allocations: 330.8 kB / 498.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.293e-05/0.09977, allocations: 36 kB / 498.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.1008, allocations: 0.6274 MB / 498.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.101, allocations: 203.5 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.1013, allocations: 246.7 kB / 499.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009984/0.1023, allocations: 0.7557 MB / 0.4883 GB, free: 12.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1023, allocations: 0 / 0.4883 GB, free: 12.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1023, allocations: 3.984 kB / 0.4883 GB, free: 12.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1023, allocations: 0 / 0.4883 GB, free: 12.04 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001025/0.1034, allocations: 0.7723 MB / 0.4891 GB, free: 11.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1034, allocations: 15.89 kB / 0.4891 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.105, allocations: 200.1 kB / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.1054, allocations: 374.3 kB / 0.4896 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.1055, allocations: 29.38 kB / 0.4896 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.644e-05/0.1056, allocations: 52.28 kB / 0.4897 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008679/0.1065, allocations: 0.6305 MB / 0.4903 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.1065, allocations: 0 / 0.4903 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.1065, allocations: 20 kB / 0.4903 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.1066, allocations: 32.98 kB / 0.4904 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008281/0.1074, allocations: 0.6089 MB / 0.491 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.1103, allocations: 2.245 MB / 0.4931 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/0.1109, allocations: 494.6 kB / 0.4936 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.1112, allocations: 234.2 kB / 0.4938 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.1112, allocations: 4 kB / 0.4938 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.1112, allocations: 42.56 kB / 0.4939 GB, free: 6.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.603e-06/0.1113, allocations: 0 / 0.4939 GB, free: 6.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.003115/0.1144, allocations: 1.716 MB / 0.4956 GB, free: 4.238 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.1144, allocations: 85.23 kB / 0.4956 GB, free: 4.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.1147, allocations: 279 kB / 0.4959 GB, free: 3.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1147, allocations: 33.7 kB / 0.4959 GB, free: 3.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1149, allocations: 232 kB / 0.4962 GB, free: 3.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.115, allocations: 145.8 kB / 0.4963 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1151, allocations: 86.16 kB / 0.4964 GB, free: 3.352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1152, allocations: 350.7 kB / 0.4967 GB, free: 3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.1155, allocations: 177 kB / 0.4969 GB, free: 2.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.1158, allocations: 294.4 kB / 0.4972 GB, free: 2.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005938/0.1164, allocations: 0.5041 MB / 0.4977 GB, free: 1.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1164, allocations: 0 / 0.4977 GB, free: 1.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00105/0.1175, allocations: 0.6808 MB / 0.4983 GB, free: 1.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1175, allocations: 8 kB / 0.4983 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1175, allocations: 8 kB / 0.4983 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005293/0.118, allocations: 177.1 kB / 0.4985 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.1184, allocations: 99.81 kB / 0.4986 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.1216, allocations: 2.786 MB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1218, allocations: 19.98 kB / 0.5013 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.1219, allocations: 20 kB / 0.5014 GB, free: 14 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002018/0.1221, allocations: 197.7 kB / 0.5016 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.1221, allocations: 35.56 kB / 0.5016 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.1232, allocations: 0.6412 MB / 0.5022 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1232, allocations: 7.938 kB / 0.5022 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.1232, allocations: 0 / 0.5022 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1232, allocations: 11.94 kB / 0.5022 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.1252, allocations: 1.348 MB / 0.5035 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1252, allocations: 0 / 0.5035 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.1255, allocations: 83.89 kB / 0.5036 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/0.1259, allocations: 136.7 kB / 0.5038 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.126, allocations: 12 kB / 0.5038 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/0.1286, allocations: 2.56 MB / 0.5063 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1286, allocations: 4 kB / 0.5063 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.1299, allocations: 0.9654 MB / 0.5072 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.641e-05/0.13, allocations: 112.6 kB / 0.5073 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.13, allocations: 11.94 kB / 0.5073 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.1302, allocations: 16.03 kB / 0.5074 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.381e-05/0.1303, allocations: 31.95 kB / 0.5074 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.1303, allocations: 12 kB / 0.5074 GB, free: 7.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.1305, allocations: 201.9 kB / 0.5076 GB, free: 7.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1305, allocations: 0 / 0.5076 GB, free: 7.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005171/0.131, allocations: 136 kB / 0.5077 GB, free: 7.199 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.1312, allocations: 107.2 kB / 0.5078 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.1322, allocations: 0.6776 MB / 0.5085 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1322, allocations: 0 / 0.5085 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000621/0.1329, allocations: 438.1 kB / 0.5089 GB, free: 5.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.1333, allocations: 68.5 kB / 0.509 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1349, allocations: 1.178 MB / 0.5101 GB, free: 4.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.1353, allocations: 0.8707 MB / 0.511 GB, free: 3.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.1355, allocations: 35.42 kB / 0.511 GB, free: 3.738 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1355, allocations: 0 / 0.511 GB, free: 3.738 MB / 398.1 MB Notification: Performance of Templates: time 0.008274/0.1437, allocations: 6.987 MB / 0.5178 GB, free: 12.74 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)