Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 114.2 kB / 16.63 MB, free: 6.812 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.001053/0.001053, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1726/0.1726, allocations: 38.02 MB / 329.4 MB, free: 8.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 68.88 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1202, allocations: 58.05 MB / 456.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.009032/0.1292, allocations: 6.828 MB / 463.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.1335, allocations: 2.267 MB / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006799/0.1342, allocations: 27.81 kB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.1357, allocations: 498.1 kB / 466 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.1371, allocations: 454.2 kB / 466.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.1381, allocations: 327.5 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001789/0.1399, allocations: 1.076 MB / 467.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008723/0.1408, allocations: 0.5276 MB / 468.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007635/0.1416, allocations: 450.3 kB / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009341/0.1425, allocations: 0.588 MB / 469.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002109/0.1427, allocations: 92 kB / 469.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009005/0.1437, allocations: 0.5265 MB / 470.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004158/0.1441, allocations: 398.9 kB / 470.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006435/0.1447, allocations: 489.6 kB / 470.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.1461, allocations: 1.196 MB / 472.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1461, allocations: 3.938 kB / 472.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1461, allocations: 0 / 472.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.913e-05/0.1462, allocations: 0 / 472.1 MB, free: 8.578 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002843/0.149, allocations: 1.241 MB / 473.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.1491, allocations: 11.89 kB / 473.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002221/0.1493, allocations: 135 kB / 473.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007434/0.15, allocations: 131.8 kB / 473.6 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009762/0.151, allocations: 0.554 MB / 474.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.859e-05/0.1511, allocations: 62.36 kB / 474.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.1513, allocations: 83.92 kB / 474.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.153, allocations: 1.088 MB / 475.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.1531, allocations: 0 / 475.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.1532, allocations: 31.94 kB / 475.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.1533, allocations: 49.98 kB / 475.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.1548, allocations: 0.9367 MB / 476.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.1602, allocations: 4.227 MB / 480.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.1614, allocations: 0.9435 MB / 481.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006243/0.162, allocations: 450.2 kB / 482.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.478e-05/0.1621, allocations: 12.47 kB / 482.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009605/0.1631, allocations: 0.6396 MB / 482.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.066e-06/0.1631, allocations: 0 / 482.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.004795/0.1679, allocations: 2.904 MB / 485.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/0.168, allocations: 149.5 kB / 485.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/0.1686, allocations: 477.7 kB / 486.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-05/0.1687, allocations: 45.7 kB / 486.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.169, allocations: 379.7 kB / 486.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/0.1693, allocations: 292.1 kB / 486.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.1696, allocations: 174.9 kB / 487.1 MB, free: 8.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1698, allocations: 386.8 kB / 487.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006252/0.1704, allocations: 390.4 kB / 487.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000778/0.1712, allocations: 0.6207 MB / 488.5 MB, free: 7.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.1726, allocations: 1.086 MB / 489.6 MB, free: 6.289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.1727, allocations: 4 kB / 489.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003051/0.1757, allocations: 1.521 MB / 491.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.1758, allocations: 37.69 kB / 491.1 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002291/0.1781, allocations: 1.156 MB / 492.3 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.1795, allocations: 437.3 kB / 492.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.18, allocations: 127.8 kB / 492.8 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007927/0.188, allocations: 5.165 MB / 498 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.1889, allocations: 67.98 kB / 498.1 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.1891, allocations: 43.98 kB / 498.1 MB, free: 13.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,relay.cnt,$PRE.relay.cnt,$whenCondition1,relay.y[3],$PRE.relay.y[3],relay.y[2],$PRE.relay.y[2],relay.y[1],$PRE.relay.y[1],breaker.breaker_c.opening,breaker.breaker_c.t0,$PRE.breaker.breaker_c.t0,breaker.breaker_c.closed,breaker.breaker_c.open,$PRE.breaker.breaker_c.open,breaker.breaker_c.arc,$PRE.breaker.breaker_c.arc,breaker.breaker_b.opening,breaker.breaker_b.t0,$PRE.breaker.breaker_b.t0,breaker.breaker_b.closed,breaker.breaker_b.open,$PRE.breaker.breaker_b.open,breaker.breaker_b.arc,$PRE.breaker.breaker_b.arc,breaker.breaker_a.opening,breaker.breaker_a.t0,$PRE.breaker.breaker_a.t0,breaker.breaker_a.closed,breaker.breaker_a.open,$PRE.breaker.breaker_a.open,breaker.breaker_a.arc,$PRE.breaker.breaker_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007502/0.1899, allocations: 343.1 kB / 498.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002771/0.1902, allocations: 67.25 kB / 498.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/0.1921, allocations: 1.13 MB / 499.6 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.1922, allocations: 16 kB / 499.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1922, allocations: 0 / 499.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1922, allocations: 3.984 kB / 499.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003588/0.1958, allocations: 2.155 MB / 0.49 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.1958, allocations: 3.938 kB / 0.4901 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005973/0.1964, allocations: 127.9 kB / 0.4902 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001752/0.1966, allocations: 86.53 kB / 0.4903 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.17e-05/0.1967, allocations: 15.98 kB / 0.4903 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002903/0.1996, allocations: 4.229 MB / 0.4944 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/0.1996, allocations: 11.91 kB / 0.4944 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.2023, allocations: 1.757 MB / 0.4961 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.2025, allocations: 140.3 kB / 0.4963 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.2026, allocations: 20 kB / 0.4963 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004896/0.2031, allocations: 55.88 kB / 0.4963 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.2033, allocations: 88.89 kB / 0.4964 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.885e-05/0.2034, allocations: 31.92 kB / 0.4964 GB, free: 2.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004541/0.2039, allocations: 319.1 kB / 0.4968 GB, free: 2.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2039, allocations: 0 / 0.4968 GB, free: 2.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009964/0.2049, allocations: 256 kB / 0.497 GB, free: 2.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003183/0.2081, allocations: 2.363 MB / 0.4993 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.2112, allocations: 1.647 MB / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2112, allocations: 0 / 0.5009 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.2124, allocations: 0.9548 MB / 0.5018 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008146/0.2132, allocations: 115.5 kB / 0.502 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.2263, allocations: 8.198 MB / 0.51 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007964/0.2271, allocations: 1.029 MB / 0.511 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006282/0.2277, allocations: 193.8 kB / 0.5112 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004846/0.2282, allocations: 287.3 kB / 0.5114 GB, free: 2.914 MB / 398.1 MB Notification: Performance of SimCode: time 1.683e-06/0.2283, allocations: 0 / 0.5114 GB, free: 2.914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3038/0.532, allocations: 18.16 MB / 0.5292 GB, free: 68.7 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.5322, allocations: 236.2 kB / 0.5294 GB, free: 68.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.301/2.834, allocations: 3.938 kB / 0.5294 GB, free: 68.45 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)