Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.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.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 110.5 kB / 17.75 MB, free: 5.309 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.001122/0.001122, allocations: 183 kB / 18.68 MB, free: 4.391 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.347/1.347, allocations: 205.1 MB / 224.6 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1736/0.1736, allocations: 37.99 MB / 309.9 MB, free: 5.957 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.00137/0.00137, allocations: 63.03 kB / 432.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Fault): time 0.00988/0.1119, allocations: 7.395 MB / 495.2 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004363/0.1163, allocations: 2.353 MB / 497.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000596/0.1169, allocations: 23.88 kB / 497.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002125/0.119, allocations: 0.7627 MB / 498.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.1208, allocations: 0.6221 MB / 498.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.1219, allocations: 483 kB / 499.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.1237, allocations: 1.478 MB / 0.4892 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.1248, allocations: 0.7126 MB / 0.4899 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.126, allocations: 0.6617 MB / 0.4905 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.1272, allocations: 0.7944 MB / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003139/0.1275, allocations: 112 kB / 0.4914 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.1286, allocations: 0.5383 MB / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007207/0.1293, allocations: 0.5767 MB / 0.4925 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.1305, allocations: 0.6492 MB / 0.4931 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002407/0.133, allocations: 1.655 MB / 0.4947 GB, free: 5.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.133, allocations: 0 / 0.4947 GB, free: 5.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.133, allocations: 3.938 kB / 0.4947 GB, free: 5.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.594e-05/0.1331, allocations: 0 / 0.4947 GB, free: 5.453 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.00414/0.1372, allocations: 1.653 MB / 0.4963 GB, free: 3.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1373, allocations: 11.89 kB / 0.4964 GB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.1384, allocations: 183.3 kB / 0.4965 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.1398, allocations: 0.7291 MB / 0.4972 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.1399, allocations: 78.38 kB / 0.4973 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.1402, allocations: 136 kB / 0.4974 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002973/0.1432, allocations: 1.601 MB / 0.499 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.1432, allocations: 7.938 kB / 0.499 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.1433, allocations: 51.95 kB / 0.4991 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002521/0.1436, allocations: 73.97 kB / 0.4991 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.1458, allocations: 1.433 MB / 0.5005 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008187/0.154, allocations: 5.75 MB / 0.5061 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.1558, allocations: 1.551 MB / 0.5077 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.1569, allocations: 0.8093 MB / 0.5085 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.776e-05/0.157, allocations: 12.98 kB / 0.5085 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.1585, allocations: 1.095 MB / 0.5095 GB, free: 5.727 MB / 398.1 MB Notification: Performance of pre-optimization done (n=153): time 3.276e-06/0.1585, allocations: 0 / 0.5095 GB, free: 5.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=154): time 0.007166/0.1657, allocations: 4.509 MB / 0.5139 GB, free: 1.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.1659, allocations: 213.2 kB / 0.5141 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006775/0.1666, allocations: 0.5652 MB / 0.5147 GB, free: 288 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.149e-05/0.1667, allocations: 65.62 kB / 0.5148 GB, free: 216 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003669/0.167, allocations: 464.4 kB / 0.5152 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003971/0.1674, allocations: 465.6 kB / 0.5156 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003752/0.1678, allocations: 269.4 kB / 0.5159 GB, free: 15.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.168, allocations: 346 kB / 0.5162 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009949/0.169, allocations: 0.6754 MB / 0.5169 GB, free: 14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.1702, allocations: 0.9754 MB / 0.5178 GB, free: 12.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.1726, allocations: 1.803 MB / 0.5196 GB, free: 10.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1726, allocations: 4 kB / 0.5196 GB, free: 10.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005485/0.1781, allocations: 2.819 MB / 0.5224 GB, free: 8.141 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.878e-05/0.1781, allocations: 67.5 kB / 0.5224 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004368/0.1825, allocations: 2.339 MB / 0.5247 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/0.1858, allocations: 1.075 MB / 0.5258 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.1863, allocations: 147.7 kB / 0.5259 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.251/0.4373, allocations: 9.121 MB / 0.5348 GB, free: 49.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.4386, allocations: 84.08 kB / 0.5349 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003185/0.4389, allocations: 54.47 kB / 0.5349 GB, free: 49.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,fault_ab.fault_pp.t0,$PRE.fault_ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,fault_ab.fault_pp.on,$PRE.fault_ab.fault_pp.on,fault_ab.first,$PRE.fault_ab.first,fault_ab.v_pos,$PRE.fault_ab.v_pos,fault_ab.theta_zero,$PRE.fault_ab.theta_zero,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 3 * Algorithm blocks: 2 * 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): 1 system {(12,40,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001356/0.4403, allocations: 483.1 kB / 0.5354 GB, free: 48.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005369/0.4409, allocations: 101.4 kB / 0.5355 GB, free: 48.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.4449, allocations: 1.827 MB / 0.5373 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.445, allocations: 10.44 kB / 0.5373 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.445, allocations: 1.312 kB / 0.5373 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006699/0.4457, allocations: 290.7 kB / 0.5376 GB, free: 48.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.4459, allocations: 44.86 kB / 0.5376 GB, free: 48.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007635/0.4467, allocations: 68.41 kB / 0.5377 GB, free: 48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.447, allocations: 121.1 kB / 0.5378 GB, free: 47.98 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004608/0.4516, allocations: 2.241 MB / 0.54 GB, free: 47.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004461/0.4561, allocations: 2.986 MB / 0.5429 GB, free: 45.88 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001229/0.4574, allocations: 0.8879 MB / 0.5438 GB, free: 45.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006302/0.458, allocations: 390 kB / 0.5441 GB, free: 45.38 MB / 414.1 MB Notification: Performance of Backend: time 8.71e-07/0.458, allocations: 0 / 0.5441 GB, free: 45.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004944/0.463, allocations: 2 MB / 0.5461 GB, free: 44.59 MB / 414.1 MB Notification: Performance of SimCode: time 0.004201/0.4672, allocations: 2.821 MB / 0.5488 GB, free: 42.94 MB / 414.1 MB Notification: Performance of Templates: time 0.02898/0.4962, allocations: 21 MB / 0.5694 GB, free: 27.66 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)