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 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.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.001297/0.001297, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001143/0.001143, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.27/1.27, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1604/0.1604, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 66.8 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09897, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.00652/0.1055, allocations: 5.296 MB / 462.3 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1077, allocations: 1.165 MB / 463.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004001/0.1081, allocations: 15.94 kB / 463.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004642/0.1086, allocations: 95.19 kB / 463.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000859/0.1095, allocations: 306.4 kB / 463.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003983/0.1099, allocations: 151.7 kB / 464 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008971/0.1108, allocations: 0.7204 MB / 464.7 MB, free: 180 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003477/0.1112, allocations: 192.8 kB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000615/0.1118, allocations: 318.6 kB / 465.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006719/0.1125, allocations: 366.7 kB / 465.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.1126, allocations: 40 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.1128, allocations: 44 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.113, allocations: 199.5 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003267/0.1133, allocations: 254.8 kB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006094/0.114, allocations: 0.5411 MB / 466.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.114, allocations: 0 / 466.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.114, allocations: 0 / 466.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.114, allocations: 0 / 466.6 MB, free: 14.24 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001618/0.1156, allocations: 0.8269 MB / 467.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1157, allocations: 19.83 kB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.425e-05/0.1158, allocations: 74.66 kB / 467.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.708e-05/0.1159, allocations: 48.38 kB / 467.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000589/0.1165, allocations: 436.5 kB / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.042e-05/0.1165, allocations: 36.92 kB / 468.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.205e-05/0.1166, allocations: 36 kB / 468.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007081/0.1173, allocations: 486.5 kB / 468.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1173, allocations: 4 kB / 468.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.1174, allocations: 12 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.1175, allocations: 32.62 kB / 468.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000633/0.1181, allocations: 366.6 kB / 469 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.1203, allocations: 1.726 MB / 470.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.1209, allocations: 394.3 kB / 471.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004665/0.1214, allocations: 229.7 kB / 471.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.1214, allocations: 7.984 kB / 471.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004213/0.1219, allocations: 275.7 kB / 471.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.904e-06/0.1219, allocations: 3.938 kB / 471.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002285/0.1242, allocations: 1.409 MB / 473 MB, free: 7.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/0.1243, allocations: 140.5 kB / 473.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.1247, allocations: 373.6 kB / 473.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.1247, allocations: 33.83 kB / 473.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1249, allocations: 259.9 kB / 473.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.125, allocations: 106.6 kB / 473.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.1251, allocations: 90.16 kB / 474 MB, free: 6.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1252, allocations: 354.8 kB / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.1255, allocations: 133.1 kB / 474.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.1258, allocations: 260.1 kB / 474.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005196/0.1263, allocations: 445.5 kB / 475.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1263, allocations: 0 / 475.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008789/0.1272, allocations: 0.5499 MB / 475.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.1273, allocations: 33.7 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1273, allocations: 7.984 kB / 475.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002683/0.1275, allocations: 82.17 kB / 475.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.1278, allocations: 79.83 kB / 475.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.1301, allocations: 2.996 MB / 478.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.1303, allocations: 27.97 kB / 478.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.1304, allocations: 20 kB / 478.9 MB, free: 1.023 MB / 350.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.0002476/0.1306, allocations: 247.4 kB / 479.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.1307, allocations: 39.53 kB / 479.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008091/0.1315, allocations: 0.4967 MB / 479.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1315, allocations: 11.92 kB / 479.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.1315, allocations: 3.938 kB / 479.7 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1316, allocations: 7.984 kB / 479.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.133, allocations: 1.053 MB / 480.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.133, allocations: 4 kB / 480.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.1333, allocations: 39.91 kB / 480.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.1335, allocations: 93.58 kB / 480.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.1336, allocations: 15.94 kB / 480.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.1358, allocations: 3.003 MB / 483.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1358, allocations: 0 / 483.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.1369, allocations: 0.787 MB / 484.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.62e-05/0.137, allocations: 112.7 kB / 484.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.1371, allocations: 15.98 kB / 484.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.1373, allocations: 23.92 kB / 484.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.1374, allocations: 40.02 kB / 484.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.1375, allocations: 12 kB / 484.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.1378, allocations: 259.1 kB / 485.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1378, allocations: 0 / 485.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004762/0.1382, allocations: 116 kB / 485.3 MB, free: 10.23 MB / 366.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.001339/0.1396, allocations: 1.334 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009695/0.1406, allocations: 0.6654 MB / 487.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.1406, allocations: 0 / 487.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006169/0.1412, allocations: 496.5 kB / 487.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005664/0.1418, allocations: 93.19 kB / 487.9 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/0.1469, allocations: 4.164 MB / 492 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.1473, allocations: 0.8782 MB / 492.9 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002555/0.1476, allocations: 75.34 kB / 493 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.1478, allocations: 159.4 kB / 493.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1478, allocations: 4 kB / 493.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.1821, allocations: 9.345 MB / 0.4907 GB, free: 8.797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.029/9.212, allocations: 9.562 kB / 0.4907 GB, free: 8.789 MB / 382.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)