Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001157/0.001157, allocations: 105.2 kB / 17.06 MB, free: 5.785 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.001156/0.001156, allocations: 198.9 kB / 18 MB, free: 4.93 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.351/1.351, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1739/0.1739, allocations: 37.99 MB / 309.2 MB, free: 5.938 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.001393/0.001393, allocations: 59.91 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.101, allocations: 55.25 MB / 486.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007131/0.1081, allocations: 5.313 MB / 491.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1102, allocations: 1.201 MB / 493.1 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1106, allocations: 15.88 kB / 493.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004344/0.1111, allocations: 95.19 kB / 493.2 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008556/0.112, allocations: 310.4 kB / 493.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.1124, allocations: 143.7 kB / 493.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/0.1132, allocations: 0.732 MB / 494.4 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003782/0.1136, allocations: 180.8 kB / 494.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000673/0.1143, allocations: 326.7 kB / 494.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006171/0.1149, allocations: 366.7 kB / 495.3 MB, free: 124 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.015e-05/0.115, allocations: 43.94 kB / 495.3 MB, free: 80 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.1152, allocations: 40 kB / 495.3 MB, free: 40 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002609/0.1154, allocations: 203.4 kB / 495.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.1157, allocations: 254.7 kB / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005484/0.1163, allocations: 0.5528 MB / 496.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1163, allocations: 7.938 kB / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1163, allocations: 0 / 496.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.148e-05/0.1163, allocations: 4 kB / 496.4 MB, free: 15.02 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001556/0.1179, allocations: 0.8191 MB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1179, allocations: 19.84 kB / 497.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.118, allocations: 70.72 kB / 497.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.1181, allocations: 52.38 kB / 497.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006646/0.1188, allocations: 452.4 kB / 497.8 MB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.1189, allocations: 32.94 kB / 497.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.62e-05/0.1189, allocations: 39.98 kB / 497.8 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.1197, allocations: 486.5 kB / 498.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1197, allocations: 0 / 498.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.182e-05/0.1197, allocations: 16 kB / 498.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.1198, allocations: 32.62 kB / 498.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005818/0.1204, allocations: 366.6 kB / 498.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.1226, allocations: 1.718 MB / 0.4887 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006117/0.1232, allocations: 395.5 kB / 0.4891 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004371/0.1237, allocations: 214.2 kB / 0.4893 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1237, allocations: 0 / 0.4893 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003943/0.1241, allocations: 283.7 kB / 0.4896 GB, free: 9.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.533e-06/0.1241, allocations: 0 / 0.4896 GB, free: 9.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002255/0.1264, allocations: 1.396 MB / 0.4909 GB, free: 8.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/0.1265, allocations: 136.5 kB / 0.491 GB, free: 8.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.1268, allocations: 369.7 kB / 0.4914 GB, free: 7.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1269, allocations: 37.83 kB / 0.4914 GB, free: 7.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.1271, allocations: 259.9 kB / 0.4917 GB, free: 7.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1272, allocations: 106.5 kB / 0.4918 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.1273, allocations: 90.16 kB / 0.4919 GB, free: 7.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1274, allocations: 346.8 kB / 0.4922 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.1277, allocations: 137 kB / 0.4923 GB, free: 6.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.128, allocations: 256.1 kB / 0.4926 GB, free: 6.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005168/0.1285, allocations: 445.4 kB / 0.493 GB, free: 5.961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1285, allocations: 0 / 0.493 GB, free: 5.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008322/0.1293, allocations: 0.5385 MB / 0.4935 GB, free: 5.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/0.1294, allocations: 41.64 kB / 0.4936 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1294, allocations: 4 kB / 0.4936 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.1297, allocations: 82.12 kB / 0.4936 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.1299, allocations: 71.84 kB / 0.4937 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.1322, allocations: 2.996 MB / 0.4966 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.1324, allocations: 27.92 kB / 0.4967 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.1325, allocations: 16 kB / 0.4967 GB, free: 1.879 MB / 382.1 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,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002684/0.1328, allocations: 243.4 kB / 0.4969 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.1328, allocations: 39.53 kB / 0.497 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008162/0.1337, allocations: 0.5044 MB / 0.4974 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1337, allocations: 4 kB / 0.4974 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1337, allocations: 3.938 kB / 0.4975 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1337, allocations: 0 / 0.4975 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1352, allocations: 1.065 MB / 0.4985 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1352, allocations: 4 kB / 0.4985 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.1354, allocations: 35.92 kB / 0.4985 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.1357, allocations: 85.64 kB / 0.4986 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.1357, allocations: 8 kB / 0.4986 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002167/0.1379, allocations: 3.015 MB / 0.5016 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1379, allocations: 0 / 0.5016 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.139, allocations: 0.7769 MB / 0.5023 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.1391, allocations: 116.6 kB / 0.5024 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.1392, allocations: 16.05 kB / 0.5024 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.1394, allocations: 23.98 kB / 0.5025 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.525e-05/0.1395, allocations: 31.95 kB / 0.5025 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.1396, allocations: 12 kB / 0.5025 GB, free: 11.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.1398, allocations: 259.2 kB / 0.5028 GB, free: 11.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1398, allocations: 0 / 0.5028 GB, free: 11.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.1403, allocations: 112 kB / 0.5029 GB, free: 11.1 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.00132/0.1417, allocations: 1.322 MB / 0.5042 GB, free: 9.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008812/0.1426, allocations: 0.6369 MB / 0.5048 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1426, allocations: 0 / 0.5048 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006358/0.1432, allocations: 493.6 kB / 0.5053 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005715/0.1438, allocations: 109.2 kB / 0.5054 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005079/0.1489, allocations: 4.124 MB / 0.5094 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.1494, allocations: 0.8587 MB / 0.5102 GB, free: 3.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.1496, allocations: 75.3 kB / 0.5103 GB, free: 3.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.1498, allocations: 159.4 kB / 0.5104 GB, free: 2.973 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1498, allocations: 0 / 0.5104 GB, free: 2.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0376/0.1874, allocations: 9.64 MB / 0.5199 GB, free: 9.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.477/9.664, allocations: 16.05 kB / 0.5199 GB, free: 9.254 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)