Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.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.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001344/0.001344, allocations: 172.7 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.523/1.523, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000986/0.0009862, allocations: 90.34 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1775/0.1775, allocations: 38.05 MB / 356.6 MB, free: 0.8203 MB / 250.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004055, allocations: 12 kB / 422.7 MB, free: 26.45 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1403, allocations: 56.33 MB / 479.1 MB, free: 2.066 MB / 314.8 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007398/0.1477, allocations: 5.264 MB / 484.3 MB, free: 12.77 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.002901/0.1507, allocations: 1.326 MB / 485.7 MB, free: 11.44 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004019/0.1511, allocations: 27.81 kB / 485.7 MB, free: 11.41 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0004593/0.1516, allocations: 87.34 kB / 485.8 MB, free: 11.33 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0009132/0.1525, allocations: 334.3 kB / 486.1 MB, free: 11 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.1529, allocations: 139.8 kB / 486.2 MB, free: 10.86 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.0009451/0.1539, allocations: 0.8606 MB / 487.1 MB, free: 10 MB / 330.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.1542, allocations: 143.2 kB / 487.2 MB, free: 9.852 MB / 330.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004157/0.1547, allocations: 262.8 kB / 487.5 MB, free: 9.594 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005726/0.1552, allocations: 346.9 kB / 487.8 MB, free: 9.254 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 6.333e-05/0.1553, allocations: 20 kB / 487.8 MB, free: 9.234 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 8.016e-05/0.1554, allocations: 20 kB / 487.9 MB, free: 9.215 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.1556, allocations: 183.4 kB / 488 MB, free: 9.035 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1558, allocations: 121.5 kB / 488.2 MB, free: 8.91 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.1562, allocations: 410.9 kB / 488.6 MB, free: 8.508 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.1562, allocations: 4 kB / 488.6 MB, free: 8.504 MB / 330.8 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1562, allocations: 0 / 488.6 MB, free: 8.504 MB / 330.8 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1563, allocations: 0 / 488.6 MB, free: 8.504 MB / 330.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001497/0.1578, allocations: 0.7567 MB / 489.3 MB, free: 7.695 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1578, allocations: 12.03 kB / 489.3 MB, free: 7.684 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.158, allocations: 59.3 kB / 489.4 MB, free: 7.625 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006413/0.1586, allocations: 415.5 kB / 489.8 MB, free: 7.18 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.1587, allocations: 29 kB / 489.8 MB, free: 7.152 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.526e-05/0.1587, allocations: 44 kB / 489.9 MB, free: 7.109 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007663/0.1595, allocations: 478.5 kB / 490.3 MB, free: 6.609 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1595, allocations: 0 / 490.3 MB, free: 6.609 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.1596, allocations: 19.98 kB / 490.4 MB, free: 6.59 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.1597, allocations: 36.59 kB / 490.4 MB, free: 6.551 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005987/0.1603, allocations: 366.6 kB / 490.7 MB, free: 6.195 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.1627, allocations: 1.719 MB / 492.5 MB, free: 4.391 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006895/0.1635, allocations: 399.2 kB / 492.9 MB, free: 3.965 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004681/0.1639, allocations: 233.5 kB / 493.1 MB, free: 3.73 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.164, allocations: 0 / 493.1 MB, free: 3.73 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004807/0.1645, allocations: 287.5 kB / 493.4 MB, free: 3.426 MB / 330.8 MB Notification: Performance of pre-optimization done (n=35): time 1.443e-06/0.1645, allocations: 3.938 kB / 493.4 MB, free: 3.422 MB / 330.8 MB Notification: Performance of matching and sorting (n=36): time 0.002585/0.1671, allocations: 1.412 MB / 494.8 MB, free: 1.895 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1672, allocations: 148.6 kB / 494.9 MB, free: 1.719 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.1676, allocations: 369.5 kB / 495.3 MB, free: 1.348 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.1676, allocations: 37.7 kB / 495.3 MB, free: 1.305 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.1678, allocations: 248.1 kB / 495.6 MB, free: 1.059 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.1679, allocations: 114.4 kB / 495.7 MB, free: 0.9453 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-05/0.168, allocations: 8 kB / 495.7 MB, free: 0.9375 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1681, allocations: 354.8 kB / 496 MB, free: 0.582 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.1684, allocations: 133 kB / 496.2 MB, free: 464 kB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.1687, allocations: 256.1 kB / 496.4 MB, free: 152 kB / 330.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.169, allocations: 185.3 kB / 496.6 MB, free: 15.96 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.169, allocations: 8 kB / 496.6 MB, free: 15.95 MB / 346.8 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008834/0.1699, allocations: 0.5385 MB / 497.1 MB, free: 15.39 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.1699, allocations: 34.17 kB / 497.2 MB, free: 15.36 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.17, allocations: 8 kB / 497.2 MB, free: 15.35 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.1703, allocations: 73.67 kB / 497.3 MB, free: 15.27 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.1706, allocations: 79.83 kB / 497.3 MB, free: 15.19 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.1731, allocations: 2.787 MB / 0.4884 GB, free: 12.14 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.1734, allocations: 27.97 kB / 0.4884 GB, free: 12.11 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.1734, allocations: 16 kB / 0.4884 GB, free: 12.1 MB / 346.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening,$whenCondition1,$PRE.relay.cnt,relay.cnt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003236/0.1738, allocations: 251.3 kB / 0.4887 GB, free: 11.84 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.622e-05/0.1739, allocations: 39.53 kB / 0.4887 GB, free: 11.8 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008609/0.1747, allocations: 0.5005 MB / 0.4892 GB, free: 11.27 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1747, allocations: 4 kB / 0.4892 GB, free: 11.27 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.1748, allocations: 8 kB / 0.4892 GB, free: 11.26 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1748, allocations: 3.953 kB / 0.4892 GB, free: 11.26 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.1764, allocations: 1.064 MB / 0.4903 GB, free: 10.12 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1764, allocations: 0 / 0.4903 GB, free: 10.12 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.1766, allocations: 39.92 kB / 0.4903 GB, free: 10.08 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.1769, allocations: 97.58 kB / 0.4904 GB, free: 9.98 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.1769, allocations: 15.92 kB / 0.4904 GB, free: 9.965 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/0.1792, allocations: 2.783 MB / 0.4931 GB, free: 6.914 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1792, allocations: 4.219 kB / 0.4931 GB, free: 6.91 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.1804, allocations: 0.7874 MB / 0.4939 GB, free: 6.09 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.688e-05/0.1805, allocations: 116.7 kB / 0.494 GB, free: 5.957 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.1805, allocations: 12 kB / 0.494 GB, free: 5.945 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.1808, allocations: 32.03 kB / 0.494 GB, free: 5.914 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.1809, allocations: 31.91 kB / 0.4941 GB, free: 5.883 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.1809, allocations: 19.94 kB / 0.4941 GB, free: 5.863 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002714/0.1812, allocations: 255.1 kB / 0.4943 GB, free: 5.617 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1812, allocations: 0 / 0.4943 GB, free: 5.617 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0004754/0.1817, allocations: 116 kB / 0.4945 GB, free: 5.504 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002012/0.1819, allocations: 115.2 kB / 0.4946 GB, free: 5.383 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.183, allocations: 0.6496 MB / 0.4952 GB, free: 4.695 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.183, allocations: 4.062 kB / 0.4952 GB, free: 4.691 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0006985/0.1837, allocations: 0.4893 MB / 0.4957 GB, free: 4.164 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.1843, allocations: 85.62 kB / 0.4958 GB, free: 4.082 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.1861, allocations: 1.261 MB / 0.497 GB, free: 2.781 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.1866, allocations: 0.8587 MB / 0.4978 GB, free: 1.898 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.1868, allocations: 39.42 kB / 0.4979 GB, free: 1.859 MB / 346.8 MB Notification: Performance of SimCode: time 3.2e-07/0.1868, allocations: 0 / 0.4979 GB, free: 1.859 MB / 346.8 MB Notification: Performance of Templates: time 0.01233/0.1991, allocations: 9.181 MB / 0.5068 GB, free: 8.672 MB / 362.8 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)