Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002662/0.002663, allocations: 173.8 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 1.726/1.726, 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.0007992/0.0007991, allocations: 90.36 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.1599/0.1599, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08946, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004185/0.0937, allocations: 4.001 MB / 483.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.09513, allocations: 1.046 MB / 484.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.0953, allocations: 23.81 kB / 484.1 MB, free: 12.94 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.09547, allocations: 47.59 kB / 484.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000435/0.09591, allocations: 202.9 kB / 484.4 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.09613, allocations: 103.9 kB / 484.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.09651, allocations: 410.5 kB / 484.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.0967, allocations: 68.77 kB / 485 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.09692, allocations: 143.3 kB / 485.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002683/0.0972, allocations: 159.4 kB / 485.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.09726, allocations: 12 kB / 485.3 MB, free: 11.81 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.804e-05/0.0973, allocations: 8 kB / 485.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.953e-05/0.09739, allocations: 79.7 kB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.305e-05/0.09747, allocations: 73.58 kB / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.09766, allocations: 183.5 kB / 485.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.09767, allocations: 4 kB / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.09768, allocations: 0 / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.0977, allocations: 0 / 485.6 MB, free: 11.46 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007727/0.09847, allocations: 0.5114 MB / 486.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.09852, allocations: 12.03 kB / 486.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.09859, allocations: 27.67 kB / 486.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.09901, allocations: 298.8 kB / 486.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.09904, allocations: 16.44 kB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.09909, allocations: 20 kB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003806/0.09947, allocations: 265.8 kB / 486.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.09949, allocations: 4 kB / 486.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.09952, allocations: 12 kB / 486.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.09954, allocations: 8 kB / 486.8 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.09979, allocations: 163.7 kB / 486.9 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.101, allocations: 1.175 MB / 488.1 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.1011, allocations: 73.11 kB / 488.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.954e-05/0.1012, allocations: 37.81 kB / 488.2 MB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.1012, allocations: 0 / 488.2 MB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.1012, allocations: 38.56 kB / 488.2 MB, free: 8.582 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.1012, allocations: 0 / 488.2 MB, free: 8.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006475/0.1019, allocations: 408.7 kB / 488.6 MB, free: 8.129 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.102, allocations: 89.11 kB / 488.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/0.1022, allocations: 242.5 kB / 489 MB, free: 7.773 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.1022, allocations: 29.64 kB / 489 MB, free: 7.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1023, allocations: 191.6 kB / 489.2 MB, free: 7.547 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.1024, allocations: 31.55 kB / 489.2 MB, free: 7.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.1024, allocations: 8 kB / 489.2 MB, free: 7.508 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1025, allocations: 330.8 kB / 489.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.855e-05/0.1025, allocations: 24.36 kB / 489.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1027, allocations: 125.5 kB / 489.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.34e-05/0.1027, allocations: 47.94 kB / 489.7 MB, free: 6.938 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1027, allocations: 0 / 489.7 MB, free: 6.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002427/0.103, allocations: 177.2 kB / 489.9 MB, free: 6.758 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.103, allocations: 11.98 kB / 489.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.103, allocations: 0 / 489.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1031, allocations: 8 kB / 489.9 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.1032, allocations: 44.36 kB / 490 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1032, allocations: 8 kB / 490 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.702e-05/0.1033, allocations: 15.8 kB / 490 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.1033, allocations: 12 kB / 490 MB, free: 6.66 MB / 330.7 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 (22): * Single equations (assignments): 22 * 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.0001305/0.1035, allocations: 149.7 kB / 490.2 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.571e-05/0.1035, allocations: 19.8 kB / 490.2 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.1037, allocations: 99.31 kB / 490.3 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1037, allocations: 0 / 490.3 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.1037, allocations: 0 / 490.3 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1037, allocations: 4 kB / 490.3 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.1041, allocations: 427.5 kB / 490.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1041, allocations: 0 / 490.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.53e-05/0.1042, allocations: 19.98 kB / 490.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1043, allocations: 0 / 490.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1043, allocations: 0 / 490.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1043, allocations: 4 kB / 490.7 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.1043, allocations: 3.953 kB / 490.7 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.1045, allocations: 229.4 kB / 490.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.1046, allocations: 100.8 kB / 491 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.1046, allocations: 4.078 kB / 491 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.1047, allocations: 11.94 kB / 491.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.1047, allocations: 7.953 kB / 491.1 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.1047, allocations: 4 kB / 491.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001408/0.1049, allocations: 178 kB / 491.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1049, allocations: 0 / 491.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.1052, allocations: 40 kB / 491.3 MB, free: 5.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0001273/0.1053, allocations: 99.03 kB / 491.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.1055, allocations: 88.45 kB / 491.5 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1055, allocations: 192 / 491.5 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.806e-05/0.1055, allocations: 31.94 kB / 491.5 MB, free: 5.051 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.106, allocations: 52.52 kB / 491.5 MB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008453/0.1068, allocations: 0.6464 MB / 492.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.1072, allocations: 0.7521 MB / 492.9 MB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/0.1072, allocations: 23.44 kB / 493 MB, free: 3.512 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1072, allocations: 4 kB / 493 MB, free: 3.508 MB / 330.7 MB Notification: Performance of Templates: time 0.003945/0.1112, allocations: 2.627 MB / 495.6 MB, free: 0.875 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)