Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.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.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.RXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001704/0.001705, allocations: 173.1 kB / 15.77 MB, free: 6.32 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.582/1.582, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009683/0.0009684, allocations: 94.2 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1623/0.1623, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003798, allocations: 8 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09118, allocations: 56.34 MB / 479.1 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.006562/0.09778, allocations: 6.573 MB / 485.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003595/0.1014, allocations: 2.269 MB / 487.9 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003755/0.1018, allocations: 35.75 kB / 487.9 MB, free: 9.129 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004157/0.1022, allocations: 154.8 kB / 488.1 MB, free: 8.977 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1034, allocations: 0.5445 MB / 488.6 MB, free: 8.43 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.1042, allocations: 343.4 kB / 489 MB, free: 8.094 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.1054, allocations: 1.368 MB / 490.3 MB, free: 6.723 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/0.1066, allocations: 0.8538 MB / 491.2 MB, free: 5.832 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.1071, allocations: 426.2 kB / 491.6 MB, free: 5.414 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007557/0.1079, allocations: 0.6231 MB / 492.2 MB, free: 4.789 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.67e-05/0.108, allocations: 44 kB / 492.3 MB, free: 4.746 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007337/0.1088, allocations: 479.2 kB / 492.7 MB, free: 4.277 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003749/0.1091, allocations: 434.9 kB / 493.2 MB, free: 3.852 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1093, allocations: 201.1 kB / 493.4 MB, free: 3.648 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000881/0.1102, allocations: 1.002 MB / 494.4 MB, free: 2.645 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1102, allocations: 4 kB / 494.4 MB, free: 2.641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1102, allocations: 0 / 494.4 MB, free: 2.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1103, allocations: 0 / 494.4 MB, free: 2.641 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002048/0.1123, allocations: 1.214 MB / 495.6 MB, free: 1.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.1124, allocations: 12.03 kB / 495.6 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007087/0.1131, allocations: 158.6 kB / 495.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008841/0.114, allocations: 0.5881 MB / 496.3 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.1141, allocations: 66 kB / 496.4 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.1143, allocations: 95.98 kB / 496.5 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.1161, allocations: 1.322 MB / 497.8 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.1161, allocations: 3.938 kB / 497.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.263e-05/0.1162, allocations: 43.98 kB / 497.9 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.1164, allocations: 61.92 kB / 497.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.1181, allocations: 1.183 MB / 499.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.124, allocations: 4.668 MB / 0.492 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.1254, allocations: 1.296 MB / 0.4932 GB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008082/0.1262, allocations: 0.6405 MB / 0.4939 GB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.616e-05/0.1263, allocations: 16.66 kB / 0.4939 GB, free: 6.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.1277, allocations: 0.8947 MB / 0.4948 GB, free: 5.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 3.266e-06/0.1277, allocations: 0 / 0.4948 GB, free: 5.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.005306/0.133, allocations: 3.617 MB / 0.4983 GB, free: 2.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.1331, allocations: 238.5 kB / 0.4985 GB, free: 1.879 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.1337, allocations: 0.4901 MB / 0.499 GB, free: 1.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.303e-05/0.1338, allocations: 49.7 kB / 0.499 GB, free: 1.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002929/0.1341, allocations: 408 kB / 0.4994 GB, free: 0.918 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.1344, allocations: 367 kB / 0.4998 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/0.1344, allocations: 24 kB / 0.4998 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1346, allocations: 398.7 kB / 0.5002 GB, free: 136 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008059/0.1354, allocations: 0.5148 MB / 0.5007 GB, free: 15.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009392/0.1364, allocations: 0.7778 MB / 0.5014 GB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008615/0.1372, allocations: 0.6456 MB / 0.5021 GB, free: 14.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.1373, allocations: 4 kB / 0.5021 GB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003608/0.1409, allocations: 2.047 MB / 0.5041 GB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.567e-05/0.1409, allocations: 67.39 kB / 0.5041 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003018/0.144, allocations: 1.63 MB / 0.5057 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/0.1459, allocations: 0.6526 MB / 0.5064 GB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.1464, allocations: 143.7 kB / 0.5065 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008621/0.1551, allocations: 5.895 MB / 0.5123 GB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000677/0.1558, allocations: 59.95 kB / 0.5123 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.1559, allocations: 43.98 kB / 0.5124 GB, free: 3.379 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006724/0.1566, allocations: 438.2 kB / 0.5128 GB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.1569, allocations: 79.06 kB / 0.5129 GB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.159, allocations: 1.431 MB / 0.5143 GB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/0.1591, allocations: 23.98 kB / 0.5143 GB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1591, allocations: 0 / 0.5143 GB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.1591, allocations: 3.984 kB / 0.5143 GB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1817/0.3408, allocations: 2.785 MB / 0.517 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.3409, allocations: 1.812 kB / 0.517 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.342, allocations: 227.1 kB / 0.5172 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.342, allocations: 4 kB / 0.5172 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-05/0.3421, allocations: 27.31 kB / 0.5172 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/0.3421, allocations: 4.859 kB / 0.5173 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3421, allocations: 6.391 kB / 0.5173 GB, free: 52.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003064/0.3452, allocations: 2.31 MB / 0.5195 GB, free: 52.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.3454, allocations: 150.6 kB / 0.5197 GB, free: 51.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.3455, allocations: 29.03 kB / 0.5197 GB, free: 51.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.346, allocations: 48.94 kB / 0.5197 GB, free: 51.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.3462, allocations: 113.9 kB / 0.5198 GB, free: 51.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.259e-05/0.3463, allocations: 32.16 kB / 0.5199 GB, free: 51.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004168/0.3467, allocations: 343.4 kB / 0.5202 GB, free: 51.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3467, allocations: 0 / 0.5202 GB, free: 51.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009742/0.3477, allocations: 306.3 kB / 0.5205 GB, free: 51.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.0002416/0.3479, allocations: 173.8 kB / 0.5207 GB, free: 51.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003095/0.351, allocations: 1.863 MB / 0.5225 GB, free: 50.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3511, allocations: 0.5938 kB / 0.5225 GB, free: 50.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.3522, allocations: 0.8879 MB / 0.5233 GB, free: 50.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007858/0.353, allocations: 131.7 kB / 0.5235 GB, free: 50.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004009/0.357, allocations: 2.753 MB / 0.5262 GB, free: 49.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006851/0.3577, allocations: 1.099 MB / 0.5272 GB, free: 48.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.3581, allocations: 75.08 kB / 0.5273 GB, free: 48.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3581, allocations: 2.516 kB / 0.5273 GB, free: 48.3 MB / 362.7 MB Notification: Performance of Templates: time 0.01955/0.3776, allocations: 13.93 MB / 0.5409 GB, free: 39.98 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)