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.001066/0.00107, allocations: 114.5 kB / 16.63 MB, free: 6.812 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.001367/0.001367, allocations: 190 kB / 17.55 MB, free: 5.934 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.294/1.294, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1616/0.1616, allocations: 38.02 MB / 329.4 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 60.45 kB / 398.4 MB, free: 34.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08451, allocations: 58.06 MB / 456.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005901/0.09043, allocations: 5.945 MB / 462.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.09221, allocations: 1.352 MB / 463.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.09242, allocations: 23.88 kB / 463.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.09269, allocations: 67.47 kB / 463.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005214/0.09323, allocations: 294.7 kB / 464.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.09348, allocations: 127.8 kB / 464.2 MB, free: 440 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005802/0.09407, allocations: 0.7242 MB / 465 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.09432, allocations: 196.7 kB / 465.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.09464, allocations: 310.7 kB / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004258/0.09507, allocations: 390.6 kB / 465.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.09514, allocations: 43.94 kB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.09521, allocations: 48 kB / 465.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.09539, allocations: 195.5 kB / 466.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.0956, allocations: 266.7 kB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.09601, allocations: 0.5373 MB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09602, allocations: 0 / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09603, allocations: 0 / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.09604, allocations: 0 / 466.9 MB, free: 13.74 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.001215/0.09726, allocations: 0.8385 MB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.0973, allocations: 11.89 kB / 467.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.09737, allocations: 70.72 kB / 467.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.09746, allocations: 56.28 kB / 467.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005016/0.09796, allocations: 428.4 kB / 468.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.098, allocations: 32.94 kB / 468.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.09807, allocations: 47.97 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006247/0.0987, allocations: 482.5 kB / 468.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.09872, allocations: 0 / 468.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.09876, allocations: 16 kB / 468.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.51e-05/0.09886, allocations: 36.62 kB / 468.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/0.09939, allocations: 366.6 kB / 469.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.1013, allocations: 1.711 MB / 471 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.1018, allocations: 398.3 kB / 471.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.1023, allocations: 229.7 kB / 471.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1023, allocations: 4 kB / 471.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.1027, allocations: 279.7 kB / 471.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.583e-06/0.1027, allocations: 0 / 471.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002005/0.1047, allocations: 1.405 MB / 473.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.1048, allocations: 144.5 kB / 473.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.1051, allocations: 377.5 kB / 473.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.1051, allocations: 37.7 kB / 473.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.1053, allocations: 256 kB / 474.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.398e-05/0.1054, allocations: 102.5 kB / 474.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.1055, allocations: 90.28 kB / 474.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.1056, allocations: 346.8 kB / 474.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.1058, allocations: 137 kB / 474.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.1061, allocations: 264.1 kB / 475 MB, free: 5.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.1065, allocations: 441.5 kB / 475.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1065, allocations: 3.938 kB / 475.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007443/0.1073, allocations: 0.5502 MB / 476 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.1073, allocations: 36.05 kB / 476 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1073, allocations: 4 kB / 476 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002301/0.1076, allocations: 81.66 kB / 476.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.1078, allocations: 76.16 kB / 476.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.1099, allocations: 3.003 MB / 479.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.1102, allocations: 27.92 kB / 479.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.1102, allocations: 15.98 kB / 479.2 MB, free: 0.5312 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.0002302/0.1104, allocations: 252.1 kB / 479.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.248e-05/0.1105, allocations: 43.44 kB / 479.5 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007921/0.1113, allocations: 0.4889 MB / 480 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1113, allocations: 7.984 kB / 480 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1113, allocations: 7.938 kB / 480 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1113, allocations: 3.984 kB / 480 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.1127, allocations: 1.064 MB / 481.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1128, allocations: 0 / 481.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.113, allocations: 39.97 kB / 481.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000223/0.1132, allocations: 85.58 kB / 481.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.1132, allocations: 16.03 kB / 481.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.1153, allocations: 3.007 MB / 484.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1153, allocations: 0 / 484.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1164, allocations: 0.7832 MB / 485 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.1165, allocations: 120.5 kB / 485.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.1165, allocations: 15.92 kB / 485.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.1168, allocations: 27.92 kB / 485.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.027e-05/0.1169, allocations: 31.89 kB / 485.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.1169, allocations: 12 kB / 485.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.1172, allocations: 267.2 kB / 485.5 MB, free: 9.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1172, allocations: 0 / 485.5 MB, free: 9.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004298/0.1176, allocations: 112 kB / 485.6 MB, free: 9.727 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.001309/0.1189, allocations: 1.326 MB / 486.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009177/0.1198, allocations: 0.6616 MB / 487.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1199, allocations: 0 / 487.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.1205, allocations: 0.4889 MB / 488.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.121, allocations: 102 kB / 488.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.1259, allocations: 4.317 MB / 492.5 MB, free: 2.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.1263, allocations: 0.8743 MB / 493.3 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002331/0.1266, allocations: 75.34 kB / 493.4 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.1268, allocations: 159.4 kB / 493.6 MB, free: 1.367 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1268, allocations: 0 / 493.6 MB, free: 1.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.124/4.25, allocations: 9.187 MB / 0.491 GB, free: 8.363 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003709/4.251, allocations: 224.7 kB / 0.4912 GB, free: 8.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/6.465, allocations: 4.062 kB / 0.4912 GB, free: 8.102 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)