Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.001595/0.001594, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.945/1.945, 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.001236/0.001236, allocations: 94.8 kB / 270.2 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.2561/0.2561, allocations: 38.06 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004515/0.0004514, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 56.33 MB / 479.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.6125, allocations: 105.3 MB / 0.5708 GB, free: 10.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.6129, allocations: 93.06 kB / 0.5709 GB, free: 10.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09168/0.7046, allocations: 19.54 MB / 0.59 GB, free: 9.297 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7046, allocations: 0 / 0.59 GB, free: 9.297 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.965e-05/0.7047, allocations: 16 kB / 0.59 GB, free: 9.281 MB / 394.7 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.004049/0.7088, allocations: 1.154 MB / 0.5911 GB, free: 8.121 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.7088, allocations: 15.97 kB / 0.5911 GB, free: 8.105 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003876/0.7092, allocations: 126.2 kB / 0.5912 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.7103, allocations: 134.8 kB / 0.5914 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004253/0.7146, allocations: 1.035 MB / 0.5924 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.373e-05/0.7147, allocations: 58.73 kB / 0.5924 GB, free: 6.957 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002084/0.7149, allocations: 77.11 kB / 0.5925 GB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002711/0.7177, allocations: 1.054 MB / 0.5935 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.463e-05/0.7178, allocations: 7.938 kB / 0.5935 GB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.7179, allocations: 38.72 kB / 0.5936 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/0.718, allocations: 41.98 kB / 0.5936 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.7207, allocations: 0.9001 MB / 0.5945 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009211/0.7299, allocations: 4.144 MB / 0.5985 GB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.7319, allocations: 0.7122 MB / 0.5992 GB, free: 1.258 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-05/0.7321, allocations: 12.61 kB / 0.5992 GB, free: 1.246 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001608/0.7337, allocations: 0.6614 MB / 0.5999 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.667e-06/0.7337, allocations: 0 / 0.5999 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.007998/0.7417, allocations: 3.225 MB / 0.603 GB, free: 14.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.7419, allocations: 152.7 kB / 0.6032 GB, free: 13.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008702/0.7428, allocations: 408.3 kB / 0.6036 GB, free: 13.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.743, allocations: 50.44 kB / 0.6036 GB, free: 13.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004078/0.7434, allocations: 415.2 kB / 0.604 GB, free: 13.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004071/0.7438, allocations: 289.3 kB / 0.6043 GB, free: 12.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.7439, allocations: 23.91 kB / 0.6043 GB, free: 12.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.7441, allocations: 354.8 kB / 0.6047 GB, free: 12.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.7453, allocations: 401.5 kB / 0.605 GB, free: 12.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.7465, allocations: 0.6109 MB / 0.6056 GB, free: 11.76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.7478, allocations: 0.495 MB / 0.6061 GB, free: 11.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.7478, allocations: 0 / 0.6061 GB, free: 11.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005086/0.7529, allocations: 1.509 MB / 0.6076 GB, free: 10.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.753, allocations: 33.7 kB / 0.6076 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004069/0.7571, allocations: 1.2 MB / 0.6088 GB, free: 9.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.7594, allocations: 441 kB / 0.6092 GB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.7604, allocations: 131 kB / 0.6093 GB, free: 8.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.7728, allocations: 4.876 MB / 0.6141 GB, free: 5.113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.7741, allocations: 73.75 kB / 0.6142 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.7742, allocations: 35.81 kB / 0.6142 GB, free: 5.027 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * Array equations: 2 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0008538/0.7751, allocations: 343.8 kB / 0.6145 GB, free: 4.746 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00025/0.7753, allocations: 76.8 kB / 0.6146 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003409/0.7787, allocations: 1.162 MB / 0.6157 GB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.211e-05/0.7788, allocations: 27.94 kB / 0.6158 GB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.7788, allocations: 0 / 0.6158 GB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.222e-05/0.7789, allocations: 11.92 kB / 0.6158 GB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006125/0.785, allocations: 2.218 MB / 0.6179 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.7851, allocations: 0 / 0.6179 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.7863, allocations: 139.8 kB / 0.6181 GB, free: 1.043 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000267/0.7866, allocations: 90.52 kB / 0.6182 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.7868, allocations: 24 kB / 0.6182 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004068/0.7908, allocations: 3.942 MB / 0.622 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.7909, allocations: 4.031 kB / 0.622 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.7958, allocations: 1.844 MB / 0.6238 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.7961, allocations: 144.3 kB / 0.624 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/0.7963, allocations: 23.98 kB / 0.624 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000885/0.7972, allocations: 71.89 kB / 0.6241 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.7976, allocations: 80.88 kB / 0.6241 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.912e-05/0.7977, allocations: 27.98 kB / 0.6242 GB, free: 10.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006033/0.7983, allocations: 315.1 kB / 0.6245 GB, free: 10 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7983, allocations: 0 / 0.6245 GB, free: 10 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001382/0.7997, allocations: 275.9 kB / 0.6247 GB, free: 9.73 MB / 426.7 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_b.closed,breaker.breaker_a.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_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(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.005483/0.8052, allocations: 2.679 MB / 0.6274 GB, free: 6.996 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00408/0.8093, allocations: 1.385 MB / 0.6287 GB, free: 5.582 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.8094, allocations: 0 / 0.6287 GB, free: 5.582 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002027/0.8114, allocations: 0.9579 MB / 0.6296 GB, free: 4.578 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009496/0.8124, allocations: 94.94 kB / 0.6297 GB, free: 4.484 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/0.8296, allocations: 9.559 MB / 0.6391 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009722/0.8306, allocations: 1.041 MB / 0.6401 GB, free: 9.648 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000894/0.8315, allocations: 299.3 kB / 0.6404 GB, free: 9.359 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/0.8315, allocations: 0 / 0.6404 GB, free: 9.359 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.292/4.123, allocations: 19.57 MB / 0.6595 GB, free: 5.773 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)