Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) 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) Running command: "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 181.1 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 221.3 MB / 235.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008573, allocations: 95.19 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04431/0.04431, allocations: 8.101 MB / 345.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.738e-05/3.742e-05, allocations: 4 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09975/0.0998, allocations: 52.51 MB / 458.1 MB, free: 9.363 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3639/0.4638, allocations: 80.78 MB / 0.5262 GB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.4641, allocations: 56.42 kB / 0.5263 GB, free: 5.207 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:258:7-259:66:writable] Warning: connect(terminalA, terminalA) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.03203/0.4961, allocations: 12.76 MB / 0.5387 GB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4961, allocations: 0 / 0.5387 GB, free: 11.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.4962, allocations: 4 kB / 0.5388 GB, free: 11.05 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.002049/0.4982, allocations: 0.8205 MB / 0.5396 GB, free: 10.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4983, allocations: 8.031 kB / 0.5396 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.112e-05/0.4984, allocations: 72.11 kB / 0.5396 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.4986, allocations: 47.53 kB / 0.5397 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.4991, allocations: 375.9 kB / 0.54 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.4991, allocations: 23.78 kB / 0.5401 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.949e-05/0.4992, allocations: 31.31 kB / 0.5401 GB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.5, allocations: 448.1 kB / 0.5405 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.5, allocations: 0 / 0.5405 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.5, allocations: 13.44 kB / 0.5405 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.5, allocations: 11.95 kB / 0.5405 GB, free: 9.465 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007665/0.5008, allocations: 438.7 kB / 0.541 GB, free: 9.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.5037, allocations: 2.117 MB / 0.543 GB, free: 7.426 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.5047, allocations: 0.6212 MB / 0.5436 GB, free: 7.008 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/0.5051, allocations: 293 kB / 0.5439 GB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/0.5052, allocations: 93.03 kB / 0.544 GB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005682/0.5058, allocations: 460.5 kB / 0.5444 GB, free: 6.391 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.026e-06/0.5058, allocations: 4 kB / 0.5444 GB, free: 6.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.002434/0.5083, allocations: 1.021 MB / 0.5454 GB, free: 5.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.5084, allocations: 195.9 kB / 0.5456 GB, free: 5.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.5087, allocations: 283.9 kB / 0.5459 GB, free: 5.207 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.5088, allocations: 40.7 kB / 0.5459 GB, free: 5.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-05/0.5089, allocations: 174.4 kB / 0.5461 GB, free: 5.035 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.509, allocations: 165.8 kB / 0.5463 GB, free: 4.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.509, allocations: 3.438 kB / 0.5463 GB, free: 4.895 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5091, allocations: 344.1 kB / 0.5466 GB, free: 4.566 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.5095, allocations: 236.9 kB / 0.5468 GB, free: 4.441 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.5098, allocations: 265.7 kB / 0.5471 GB, free: 4.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000411/0.5102, allocations: 287.2 kB / 0.5473 GB, free: 4.117 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5102, allocations: 0 / 0.5473 GB, free: 4.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002359/0.5126, allocations: 1.061 MB / 0.5484 GB, free: 3.363 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.5126, allocations: 36.62 kB / 0.5484 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5127, allocations: 0 / 0.5484 GB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/0.5149, allocations: 0.515 MB / 0.5489 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.5151, allocations: 59.89 kB / 0.549 GB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.5201, allocations: 3.656 MB / 0.5525 GB, free: 312 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.5205, allocations: 46.77 kB / 0.5526 GB, free: 272 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.5205, allocations: 19.73 kB / 0.5526 GB, free: 256 kB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = false ) "true means the fault is active" type: Boolean line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = false ) "Imaginary part of complex number" type: Real line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = false ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.line2.myFault.fault,line2.myFault.fault,$PRE.line2.myFault.Y.re,line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * 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 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.5207, allocations: 170.6 kB / 0.5528 GB, free: 92 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.5208, allocations: 39.56 kB / 0.5528 GB, free: 52 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.5235, allocations: 1.15 MB / 0.5539 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.5235, allocations: 12 kB / 0.5539 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5235, allocations: 11.88 kB / 0.554 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.5235, allocations: 0 / 0.554 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003371/0.5269, allocations: 1.912 MB / 0.5558 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.5269, allocations: 0 / 0.5558 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.5271, allocations: 55.91 kB / 0.5559 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002164/0.5293, allocations: 0.5003 MB / 0.5564 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.5293, allocations: 19.98 kB / 0.5564 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005169/0.5345, allocations: 3.609 MB / 0.5599 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5346, allocations: 0 / 0.5599 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002613/0.5372, allocations: 1.176 MB / 0.5611 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.5373, allocations: 132.5 kB / 0.5612 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.329e-05/0.5374, allocations: 15.95 kB / 0.5612 GB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.5378, allocations: 27.98 kB / 0.5612 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.5379, allocations: 44.38 kB / 0.5613 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.538, allocations: 16 kB / 0.5613 GB, free: 7.254 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002929/0.5383, allocations: 239.1 kB / 0.5615 GB, free: 7.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5383, allocations: 0 / 0.5615 GB, free: 7.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005882/0.5389, allocations: 175.8 kB / 0.5617 GB, free: 6.848 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * 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 {3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.002867/0.5418, allocations: 1.765 MB / 0.5634 GB, free: 5.051 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.5436, allocations: 0.9061 MB / 0.5643 GB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5436, allocations: 0 / 0.5643 GB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.5448, allocations: 0.6685 MB / 0.5649 GB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.5451, allocations: 32.89 kB / 0.565 GB, free: 3.387 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.5467, allocations: 0.6302 MB / 0.5656 GB, free: 2.727 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.5471, allocations: 0.8136 MB / 0.5664 GB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.5473, allocations: 55.41 kB / 0.5664 GB, free: 1.828 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.5475, allocations: 127.4 kB / 0.5666 GB, free: 1.703 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5475, allocations: 0 / 0.5666 GB, free: 1.703 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.5793, allocations: 13.91 MB / 0.5801 GB, free: 3.957 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002963/0.5797, allocations: 191.5 kB / 0.5803 GB, free: 3.723 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.203/2.783, allocations: 0 / 0.5803 GB, free: 3.723 MB / 394.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)