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.001521/0.001521, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001617/0.001617, allocations: 189.4 kB / 18 MB, free: 5.102 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1785/0.1785, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3108, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005549/0.3164, allocations: 5.298 MB / 0.5088 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.3181, allocations: 1.162 MB / 0.5099 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.3183, allocations: 17.09 kB / 0.5099 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.3186, allocations: 93.27 kB / 0.51 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.3193, allocations: 318.5 kB / 0.5103 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.3196, allocations: 148.6 kB / 0.5105 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/0.3203, allocations: 0.7267 MB / 0.5112 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.3205, allocations: 195.5 kB / 0.5114 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003648/0.3209, allocations: 308.2 kB / 0.5117 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.3214, allocations: 365.2 kB / 0.512 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.642e-05/0.3215, allocations: 40.69 kB / 0.5121 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.3216, allocations: 45.62 kB / 0.5121 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002091/0.3218, allocations: 194.5 kB / 0.5123 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.3221, allocations: 264 kB / 0.5125 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.3227, allocations: 0.5496 MB / 0.5131 GB, free: 1.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3227, allocations: 0 / 0.5131 GB, free: 1.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3227, allocations: 0 / 0.5131 GB, free: 1.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.3227, allocations: 1.125 kB / 0.5131 GB, free: 1.547 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.001307/0.324, allocations: 0.8462 MB / 0.5139 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3241, allocations: 13.42 kB / 0.5139 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.879e-05/0.3242, allocations: 80.67 kB / 0.514 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3243, allocations: 55.39 kB / 0.514 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005979/0.3249, allocations: 449.6 kB / 0.5145 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.3249, allocations: 32.53 kB / 0.5145 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/0.325, allocations: 41.41 kB / 0.5145 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007065/0.3257, allocations: 484.5 kB / 0.515 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3257, allocations: 3.938 kB / 0.515 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.3258, allocations: 17.53 kB / 0.515 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.3259, allocations: 32.78 kB / 0.5151 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005641/0.3264, allocations: 362.5 kB / 0.5154 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.3289, allocations: 1.711 MB / 0.5171 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007375/0.3296, allocations: 404.5 kB / 0.5175 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004962/0.3302, allocations: 204.6 kB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.3302, allocations: 7.875 kB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/0.3307, allocations: 284.1 kB / 0.5179 GB, free: 14.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 5.771e-06/0.3307, allocations: 3.984 kB / 0.5179 GB, free: 14.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002435/0.3331, allocations: 1.406 MB / 0.5193 GB, free: 13.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.125e-05/0.3332, allocations: 140.2 kB / 0.5194 GB, free: 13.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/0.3337, allocations: 375.6 kB / 0.5198 GB, free: 13.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.3337, allocations: 37.3 kB / 0.5198 GB, free: 13.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.3339, allocations: 254.7 kB / 0.5201 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.334, allocations: 121.5 kB / 0.5202 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3342, allocations: 86.34 kB / 0.5203 GB, free: 12.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3344, allocations: 350.7 kB / 0.5206 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.3346, allocations: 133.8 kB / 0.5207 GB, free: 12.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.3349, allocations: 254.7 kB / 0.521 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005841/0.3355, allocations: 439.4 kB / 0.5214 GB, free: 11.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3355, allocations: 1.188 kB / 0.5214 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008818/0.3364, allocations: 0.5437 MB / 0.5219 GB, free: 11.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.3365, allocations: 33.58 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3365, allocations: 3.594 kB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.3368, allocations: 79.89 kB / 0.522 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.337, allocations: 74.44 kB / 0.5221 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.3395, allocations: 3 MB / 0.525 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.3398, allocations: 25.73 kB / 0.5251 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.3399, allocations: 18.31 kB / 0.5251 GB, free: 8.578 MB / 398.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.0002927/0.3402, allocations: 241.3 kB / 0.5253 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.3402, allocations: 44.03 kB / 0.5254 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008987/0.3411, allocations: 0.4939 MB / 0.5258 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3412, allocations: 3.781 kB / 0.5258 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3412, allocations: 10.31 kB / 0.5259 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3412, allocations: 1.641 kB / 0.5259 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.3428, allocations: 1.055 MB / 0.5269 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3428, allocations: 0 / 0.5269 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.343, allocations: 39.03 kB / 0.5269 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002432/0.3432, allocations: 91.27 kB / 0.527 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.3433, allocations: 11.33 kB / 0.527 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.3458, allocations: 3.01 MB / 0.53 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3458, allocations: 0 / 0.53 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.347, allocations: 0.7809 MB / 0.5307 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.3471, allocations: 115.7 kB / 0.5308 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.3472, allocations: 15.64 kB / 0.5309 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.3474, allocations: 17.72 kB / 0.5309 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3475, allocations: 37.45 kB / 0.5309 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.3476, allocations: 15.16 kB / 0.5309 GB, free: 4.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002876/0.3479, allocations: 261.5 kB / 0.5312 GB, free: 3.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3479, allocations: 0 / 0.5312 GB, free: 3.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005088/0.3484, allocations: 112.7 kB / 0.5313 GB, free: 3.871 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.001505/0.3499, allocations: 1.334 MB / 0.5326 GB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3509, allocations: 0.632 MB / 0.5332 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3509, allocations: 0 / 0.5332 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007203/0.3516, allocations: 492 kB / 0.5337 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3523, allocations: 105.9 kB / 0.5338 GB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005578/0.3579, allocations: 4.126 MB / 0.5378 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005543/0.3584, allocations: 0.8636 MB / 0.5386 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002396/0.3587, allocations: 68.84 kB / 0.5387 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3589, allocations: 160.8 kB / 0.5389 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 2.224e-06/0.3589, allocations: 0 / 0.5389 GB, free: 14.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04128/0.4002, allocations: 9.485 MB / 0.5481 GB, free: 9.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.17, allocations: 4 kB / 0.5481 GB, free: 9.586 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)