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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001541/0.001546, allocations: 184.4 kB / 15.77 MB, free: 6.375 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.989/1.989, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001145/0.001144, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2983/0.2983, allocations: 38.05 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004496, allocations: 16 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.008388/0.1209, allocations: 5.063 MB / 484.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.1245, allocations: 1.346 MB / 485.5 MB, free: 11.51 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004988/0.1251, allocations: 27.81 kB / 485.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004171/0.1255, allocations: 83.47 kB / 485.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.1266, allocations: 271.1 kB / 485.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005965/0.1272, allocations: 143.7 kB / 486.1 MB, free: 11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007668/0.128, allocations: 375.2 kB / 486.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003684/0.1283, allocations: 147.2 kB / 486.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005502/0.1289, allocations: 227.1 kB / 486.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1295, allocations: 235.2 kB / 487 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.646e-05/0.1296, allocations: 20 kB / 487 MB, free: 10 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.1297, allocations: 20 kB / 487.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002762/0.13, allocations: 175.5 kB / 487.2 MB, free: 9.812 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1302, allocations: 113.5 kB / 487.3 MB, free: 9.695 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006308/0.1308, allocations: 414.9 kB / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.1308, allocations: 0 / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1308, allocations: 0 / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1309, allocations: 0 / 487.7 MB, free: 9.289 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002028/0.1329, allocations: 0.7607 MB / 488.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.133, allocations: 8.031 kB / 488.5 MB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001506/0.1331, allocations: 82.42 kB / 488.6 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.1333, allocations: 59.28 kB / 488.7 MB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009762/0.1343, allocations: 415.5 kB / 489.1 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.1343, allocations: 29 kB / 489.1 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.1344, allocations: 35.98 kB / 489.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.1356, allocations: 482.5 kB / 489.6 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.1357, allocations: 0 / 489.6 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.1357, allocations: 16 kB / 489.6 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002029/0.136, allocations: 32.58 kB / 489.6 MB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.137, allocations: 366.6 kB / 490 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.1407, allocations: 1.723 MB / 491.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1418, allocations: 401.2 kB / 492.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.1419, allocations: 8.062 kB / 492.1 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006711/0.1425, allocations: 287.5 kB / 492.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 3.827e-06/0.1426, allocations: 0 / 492.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.003796/0.1464, allocations: 1.487 MB / 493.9 MB, free: 2.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1465, allocations: 140.5 kB / 494 MB, free: 2.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006272/0.1471, allocations: 369.5 kB / 494.4 MB, free: 2.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.1472, allocations: 41.69 kB / 494.4 MB, free: 2.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/0.1475, allocations: 294.5 kB / 494.7 MB, free: 1.859 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.1477, allocations: 114.5 kB / 494.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.1477, allocations: 12 kB / 494.8 MB, free: 1.734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.1479, allocations: 326.8 kB / 495.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.1483, allocations: 133 kB / 495.3 MB, free: 1.277 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.1488, allocations: 260.1 kB / 495.5 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004715/0.1493, allocations: 185.3 kB / 495.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1493, allocations: 0 / 495.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001459/0.1508, allocations: 0.5155 MB / 496.2 MB, free: 252 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.1509, allocations: 33.7 kB / 496.3 MB, free: 212 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1509, allocations: 0 / 496.3 MB, free: 212 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004254/0.1513, allocations: 86.09 kB / 496.4 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005457/0.1519, allocations: 71.84 kB / 496.4 MB, free: 48 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003422/0.1554, allocations: 2.814 MB / 499.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000554/0.156, allocations: 32.23 kB / 499.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.156, allocations: 23.98 kB / 499.3 MB, free: 12.91 MB / 346.7 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.0004259/0.1565, allocations: 239.3 kB / 499.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.1566, allocations: 39.53 kB / 499.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.158, allocations: 0.5006 MB / 0.4883 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.158, allocations: 4 kB / 0.4884 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.158, allocations: 0 / 0.4884 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.158, allocations: 11.88 kB / 0.4884 GB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.1605, allocations: 1.053 MB / 0.4894 GB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.1605, allocations: 8.016 kB / 0.4894 GB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.1609, allocations: 47.91 kB / 0.4894 GB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004235/0.1613, allocations: 89.55 kB / 0.4895 GB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.1614, allocations: 8 kB / 0.4895 GB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003295/0.1647, allocations: 2.814 MB / 0.4923 GB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1647, allocations: 0 / 0.4923 GB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.1667, allocations: 0.8144 MB / 0.4931 GB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.1669, allocations: 116.6 kB / 0.4932 GB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.167, allocations: 15.98 kB / 0.4932 GB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.1675, allocations: 19.98 kB / 0.4932 GB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.1676, allocations: 36.02 kB / 0.4933 GB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/0.1677, allocations: 12 kB / 0.4933 GB, free: 6.648 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004633/0.1681, allocations: 259.1 kB / 0.4935 GB, free: 6.398 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.605e-06/0.1682, allocations: 0 / 0.4935 GB, free: 6.398 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007406/0.1689, allocations: 119.9 kB / 0.4936 GB, free: 6.281 MB / 346.7 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.002459/0.1714, allocations: 1.49 MB / 0.4951 GB, free: 4.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.1731, allocations: 0.6452 MB / 0.4957 GB, free: 4.055 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1731, allocations: 0 / 0.4957 GB, free: 4.055 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.1743, allocations: 0.4939 MB / 0.4962 GB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.175, allocations: 85.42 kB / 0.4963 GB, free: 3.441 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00875/0.1838, allocations: 5.287 MB / 0.5014 GB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006894/0.1846, allocations: 0.8743 MB / 0.5023 GB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.1852, allocations: 163.3 kB / 0.5025 GB, free: 12.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.1852, allocations: 0 / 0.5025 GB, free: 12.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.842/3.028, allocations: 10.99 MB / 0.5132 GB, free: 1.957 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)