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.001548/0.001548, allocations: 190.7 kB / 15.77 MB, free: 5.988 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.176/2.176, 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.00115/0.00115, allocations: 94.8 kB / 270.2 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.266/0.266, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004685, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1079, allocations: 56.33 MB / 479 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006589/0.1145, allocations: 3.998 MB / 483 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.1173, allocations: 1.1 MB / 484.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003319/0.1177, allocations: 23.81 kB / 484.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.1179, allocations: 51.59 kB / 484.2 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.1186, allocations: 195.4 kB / 484.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.1191, allocations: 103.8 kB / 484.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005559/0.1197, allocations: 235.5 kB / 484.7 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002726/0.1199, allocations: 77.16 kB / 484.8 MB, free: 12.24 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.1203, allocations: 135.5 kB / 484.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003701/0.1207, allocations: 131.5 kB / 485.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.1208, allocations: 12 kB / 485.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.1208, allocations: 12 kB / 485.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.121, allocations: 75.73 kB / 485.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1211, allocations: 73.58 kB / 485.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.1214, allocations: 211.4 kB / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.1215, allocations: 0 / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1215, allocations: 0 / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1215, allocations: 0 / 485.4 MB, free: 11.59 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.001257/0.1228, allocations: 0.5542 MB / 486 MB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1228, allocations: 8.031 kB / 486 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.1229, allocations: 39.58 kB / 486 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006806/0.1236, allocations: 305.8 kB / 486.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.919e-05/0.1237, allocations: 24.41 kB / 486.4 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.1237, allocations: 20 kB / 486.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006657/0.1244, allocations: 286.8 kB / 486.7 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.1245, allocations: 7.938 kB / 486.7 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.1245, allocations: 4 kB / 486.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.1245, allocations: 8 kB / 486.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004975/0.125, allocations: 180.9 kB / 486.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.1271, allocations: 1.228 MB / 488.1 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.1277, allocations: 109.2 kB / 488.2 MB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.1277, allocations: 4.062 kB / 488.2 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.1277, allocations: 38.56 kB / 488.2 MB, free: 8.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.915e-06/0.1278, allocations: 0 / 488.2 MB, free: 8.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.001193/0.129, allocations: 492.5 kB / 488.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.1291, allocations: 85.06 kB / 488.8 MB, free: 7.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.1294, allocations: 238.7 kB / 489 MB, free: 7.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1295, allocations: 33.64 kB / 489.1 MB, free: 7.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.1297, allocations: 258.1 kB / 489.3 MB, free: 7.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.1297, allocations: 47.44 kB / 489.4 MB, free: 7.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.062e-05/0.1297, allocations: 0 / 489.4 MB, free: 7.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1299, allocations: 318.8 kB / 489.7 MB, free: 7.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.13, allocations: 35.97 kB / 489.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.1302, allocations: 136.7 kB / 489.8 MB, free: 6.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.1304, allocations: 55.94 kB / 489.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1304, allocations: 0 / 489.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000482/0.1309, allocations: 190.2 kB / 490.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.131, allocations: 8 kB / 490.1 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.131, allocations: 4 kB / 490.1 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.131, allocations: 4 kB / 490.1 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.1314, allocations: 47.91 kB / 490.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.1314, allocations: 7.938 kB / 490.2 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.1316, allocations: 11.95 kB / 490.2 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.1317, allocations: 12 kB / 490.2 MB, free: 6.461 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.0002329/0.1319, allocations: 158 kB / 490.3 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.132, allocations: 23.66 kB / 490.4 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003837/0.1324, allocations: 135.3 kB / 490.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1324, allocations: 0 / 490.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.1324, allocations: 4 kB / 490.5 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1324, allocations: 0 / 490.5 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000825/0.1332, allocations: 479.1 kB / 491 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1333, allocations: 4.031 kB / 491 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.1335, allocations: 20 kB / 491 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.1335, allocations: 0 / 491 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1336, allocations: 11.98 kB / 491 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.1336, allocations: 0 / 491 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.1336, allocations: 7.891 kB / 491 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005316/0.1341, allocations: 300.5 kB / 491.3 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.579e-05/0.1343, allocations: 100.8 kB / 491.4 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/0.1343, allocations: 0 / 491.4 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.1345, allocations: 8 kB / 491.4 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.1345, allocations: 11.97 kB / 491.4 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1346, allocations: 4 kB / 491.4 MB, free: 5.094 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002466/0.1348, allocations: 170 kB / 491.6 MB, free: 4.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1348, allocations: 4.062 kB / 491.6 MB, free: 4.926 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004676/0.1353, allocations: 44 kB / 491.6 MB, free: 4.883 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.0001566/0.1355, allocations: 103.2 kB / 491.7 MB, free: 4.773 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003435/0.1358, allocations: 111.8 kB / 491.8 MB, free: 4.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1358, allocations: 0.875 kB / 491.8 MB, free: 4.664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.136, allocations: 43.92 kB / 491.9 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005647/0.1366, allocations: 56.55 kB / 491.9 MB, free: 4.566 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.138, allocations: 0.7133 MB / 492.7 MB, free: 3.809 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.1385, allocations: 0.7833 MB / 493.4 MB, free: 3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.638e-05/0.1386, allocations: 19.62 kB / 493.5 MB, free: 2.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1386, allocations: 0 / 493.5 MB, free: 2.98 MB / 330.7 MB Notification: Performance of Templates: time 0.007817/0.1464, allocations: 2.872 MB / 496.3 MB, free: 108 kB / 330.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)