Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 176.3 kB / 15.78 MB, free: 6.348 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.708/1.708, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008331/0.0008331, allocations: 98.3 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1737/0.1737, allocations: 38.07 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003503, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 56.32 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004608/0.1081, allocations: 4.153 MB / 483.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.1098, allocations: 1.073 MB / 484.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.11, allocations: 23.81 kB / 484.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.1102, allocations: 59.53 kB / 484.4 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005122/0.1107, allocations: 210.8 kB / 484.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.111, allocations: 103.9 kB / 484.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004033/0.1114, allocations: 442.4 kB / 485.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1116, allocations: 89.11 kB / 485.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.1119, allocations: 143.3 kB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.1122, allocations: 175.3 kB / 485.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1122, allocations: 8 kB / 485.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.205e-05/0.1123, allocations: 16 kB / 485.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.545e-05/0.1123, allocations: 79.77 kB / 485.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.213e-05/0.1124, allocations: 73.52 kB / 485.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.1126, allocations: 211.4 kB / 485.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1126, allocations: 0 / 485.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1127, allocations: 4 kB / 485.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1127, allocations: 0 / 485.9 MB, free: 11.16 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008906/0.1136, allocations: 0.5502 MB / 486.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1136, allocations: 8.031 kB / 486.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.1137, allocations: 35.58 kB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.1141, allocations: 309.8 kB / 486.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1141, allocations: 16.44 kB / 486.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.1142, allocations: 24 kB / 486.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.1146, allocations: 290.8 kB / 487.1 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1146, allocations: 0 / 487.1 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.1147, allocations: 16 kB / 487.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.1147, allocations: 11.92 kB / 487.1 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.115, allocations: 172.9 kB / 487.3 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.1163, allocations: 1.236 MB / 488.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.1166, allocations: 105.2 kB / 488.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.841e-05/0.1167, allocations: 41.77 kB / 488.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.1167, allocations: 7.938 kB / 488.7 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.1167, allocations: 38.5 kB / 488.7 MB, free: 8.082 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1167, allocations: 0 / 488.7 MB, free: 8.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008167/0.1176, allocations: 492.4 kB / 489.2 MB, free: 7.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.1176, allocations: 81.06 kB / 489.3 MB, free: 7.449 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.1179, allocations: 238.7 kB / 489.5 MB, free: 7.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1179, allocations: 33.83 kB / 489.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.118, allocations: 203.5 kB / 489.8 MB, free: 6.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.1181, allocations: 35.45 kB / 489.8 MB, free: 6.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-06/0.1181, allocations: 4 kB / 489.8 MB, free: 6.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1182, allocations: 334.8 kB / 490.1 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.809e-05/0.1183, allocations: 31.98 kB / 490.2 MB, free: 6.551 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.1184, allocations: 136.7 kB / 490.3 MB, free: 6.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.886e-05/0.1185, allocations: 59.92 kB / 490.3 MB, free: 6.312 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1185, allocations: 0 / 490.3 MB, free: 6.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002823/0.1188, allocations: 209.8 kB / 490.5 MB, free: 6.102 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1189, allocations: 8 kB / 490.6 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1189, allocations: 0 / 490.6 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.1189, allocations: 8.094 kB / 490.6 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.1191, allocations: 47.86 kB / 490.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.1191, allocations: 19.88 kB / 490.6 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1192, allocations: 4 kB / 490.6 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.1192, allocations: 12.34 kB / 490.6 MB, free: 6.004 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 (24): * Single equations (assignments): 24 * 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.000144/0.1194, allocations: 157.6 kB / 490.8 MB, free: 5.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.1194, allocations: 23.72 kB / 490.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.1197, allocations: 131.4 kB / 491 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1197, allocations: 0 / 491 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1197, allocations: 0 / 491 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.984e-06/0.1197, allocations: 7.938 kB / 491 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.1202, allocations: 479.2 kB / 491.4 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1203, allocations: 0 / 491.4 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.1204, allocations: 23.98 kB / 491.4 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1204, allocations: 0 / 491.4 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.1204, allocations: 11.94 kB / 491.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1204, allocations: 3.953 kB / 491.5 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1204, allocations: 0 / 491.5 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1207, allocations: 280.9 kB / 491.7 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.516e-05/0.1208, allocations: 96.95 kB / 491.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.1208, allocations: 0 / 491.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.121, allocations: 3.984 kB / 491.8 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.121, allocations: 19.94 kB / 491.9 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.121, allocations: 3.938 kB / 491.9 MB, free: 4.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001489/0.1212, allocations: 174 kB / 492 MB, free: 4.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.054e-06/0.1212, allocations: 0 / 492 MB, free: 4.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.1214, allocations: 47.94 kB / 492.1 MB, free: 4.457 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 (13): * Single equations (assignments): 12 * 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.0001044/0.1216, allocations: 103.3 kB / 492.2 MB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.1218, allocations: 103.8 kB / 492.3 MB, free: 4.246 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1218, allocations: 0 / 492.3 MB, free: 4.246 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.168e-05/0.1219, allocations: 48.78 kB / 492.3 MB, free: 4.199 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004494/0.1223, allocations: 56.84 kB / 492.4 MB, free: 4.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009602/0.1233, allocations: 0.7059 MB / 493.1 MB, free: 3.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.1236, allocations: 0.7794 MB / 493.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.385e-05/0.1237, allocations: 23.44 kB / 493.9 MB, free: 2.566 MB / 330.7 MB Notification: Performance of SimCode: time 1.853e-06/0.1237, allocations: 0 / 493.9 MB, free: 2.566 MB / 330.7 MB Notification: Performance of Templates: time 0.004679/0.1284, allocations: 2.911 MB / 496.8 MB, free: 15.65 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)