Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.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.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",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.000903/0.000903, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 221.5 MB / 230 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 92.36 kB / 280.9 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04538/0.04538, allocations: 8.102 MB / 339.8 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.419e-05/2.413e-05, allocations: 2.75 kB / 398.6 MB, free: 49.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 52.52 MB / 451.1 MB, free: 5.254 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1109/0.2176, allocations: 78.97 MB / 0.5176 GB, free: 6.172 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.2179, allocations: 59.98 kB / 0.5177 GB, free: 6.113 MB / 362.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.2667/0.4846, allocations: 9.611 MB / 0.5271 GB, free: 78.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4846, allocations: 0 / 0.5271 GB, free: 78.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.4846, allocations: 4.5 kB / 0.5271 GB, free: 78.17 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001616/0.4863, allocations: 0.6676 MB / 0.5277 GB, free: 77.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.4863, allocations: 13.23 kB / 0.5277 GB, free: 77.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.4866, allocations: 46.02 kB / 0.5278 GB, free: 77.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.4871, allocations: 323.1 kB / 0.5281 GB, free: 77.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.4871, allocations: 7.469 kB / 0.5281 GB, free: 77.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.4872, allocations: 13.81 kB / 0.5281 GB, free: 77.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005986/0.4878, allocations: 308.2 kB / 0.5284 GB, free: 77.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.4884, allocations: 305.5 kB / 0.5287 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.4884, allocations: 1.781 kB / 0.5287 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.4884, allocations: 5.172 kB / 0.5287 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.4884, allocations: 4.969 kB / 0.5287 GB, free: 77.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.4906, allocations: 1.549 MB / 0.5302 GB, free: 76.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007884/0.4914, allocations: 339.5 kB / 0.5306 GB, free: 76.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.4917, allocations: 182.2 kB / 0.5307 GB, free: 76.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.551e-05/0.4918, allocations: 86.75 kB / 0.5308 GB, free: 76.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.4922, allocations: 351 kB / 0.5311 GB, free: 76.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 2.104e-06/0.4923, allocations: 1.219 kB / 0.5311 GB, free: 76.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001851/0.4941, allocations: 0.6273 MB / 0.5318 GB, free: 76.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/0.4942, allocations: 194.2 kB / 0.5319 GB, free: 75.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.4945, allocations: 253.4 kB / 0.5322 GB, free: 75.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.4946, allocations: 30.67 kB / 0.5322 GB, free: 75.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.4947, allocations: 162.1 kB / 0.5324 GB, free: 75.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.4948, allocations: 98.92 kB / 0.5325 GB, free: 75.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-05/0.4948, allocations: 0 / 0.5325 GB, free: 75.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.4949, allocations: 337.9 kB / 0.5328 GB, free: 75.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.4951, allocations: 156 kB / 0.5329 GB, free: 75.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.4954, allocations: 206.1 kB / 0.5331 GB, free: 75.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.4959, allocations: 187.6 kB / 0.5333 GB, free: 75.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4959, allocations: 0 / 0.5333 GB, free: 75.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00189/0.4978, allocations: 0.7095 MB / 0.534 GB, free: 75.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.4979, allocations: 35.86 kB / 0.534 GB, free: 75.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4979, allocations: 1.281 kB / 0.534 GB, free: 75.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.4993, allocations: 307.2 kB / 0.5343 GB, free: 75.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.4995, allocations: 45.78 kB / 0.5344 GB, free: 75.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.5028, allocations: 2.636 MB / 0.5369 GB, free: 73.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.5032, allocations: 26.22 kB / 0.537 GB, free: 73.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.5032, allocations: 21.78 kB / 0.537 GB, free: 73.88 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = false ) "true means the fault is active" type: Boolean lnFault.myFault.Y.im:DISCRETE(start = 0.0 fixed = false ) "Imaginary part of complex number" type: Real lnFault.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.lnFault.myFault.fault,lnFault.myFault.fault,$PRE.lnFault.myFault.Y.re,lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.5035, allocations: 157.1 kB / 0.5371 GB, free: 73.74 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001711/0.5052, allocations: 0.6417 MB / 0.5378 GB, free: 73.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.5053, allocations: 31.06 kB / 0.5378 GB, free: 73.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.5072, allocations: 0.7029 MB / 0.5385 GB, free: 73.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.5072, allocations: 3.188 kB / 0.5385 GB, free: 73.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5073, allocations: 3.062 kB / 0.5385 GB, free: 73.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5073, allocations: 0 / 0.5385 GB, free: 73.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005431/0.5078, allocations: 495.4 kB / 0.539 GB, free: 73.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5078, allocations: 0 / 0.539 GB, free: 73.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.508, allocations: 34.27 kB / 0.539 GB, free: 73.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.5092, allocations: 305.7 kB / 0.5393 GB, free: 73.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.5093, allocations: 3.625 kB / 0.5393 GB, free: 73.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.5123, allocations: 2.629 MB / 0.5419 GB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.5123, allocations: 2.859 kB / 0.5419 GB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.5139, allocations: 0.6891 MB / 0.5425 GB, free: 70.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.53e-05/0.514, allocations: 117.8 kB / 0.5426 GB, free: 70.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.5141, allocations: 6.406 kB / 0.5427 GB, free: 70.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.5143, allocations: 6.875 kB / 0.5427 GB, free: 70.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.458e-05/0.5144, allocations: 33.89 kB / 0.5427 GB, free: 70.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.5144, allocations: 10.31 kB / 0.5427 GB, free: 70.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000188/0.5146, allocations: 199.7 kB / 0.5429 GB, free: 70.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5146, allocations: 0 / 0.5429 GB, free: 70.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005391/0.5152, allocations: 112 kB / 0.543 GB, free: 70.6 MB / 362.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,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001857/0.5171, allocations: 1.259 MB / 0.5442 GB, free: 69.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.5182, allocations: 0.6662 MB / 0.5449 GB, free: 69.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5183, allocations: 0 / 0.5449 GB, free: 69.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007511/0.519, allocations: 0.4972 MB / 0.5454 GB, free: 68.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.5192, allocations: 12.06 kB / 0.5454 GB, free: 68.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009336/0.5202, allocations: 449.3 kB / 0.5458 GB, free: 68.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.5204, allocations: 0.7752 MB / 0.5466 GB, free: 68.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.5206, allocations: 40.83 kB / 0.5466 GB, free: 68.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.5207, allocations: 88.61 kB / 0.5467 GB, free: 67.95 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5207, allocations: 0 / 0.5467 GB, free: 67.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.5482, allocations: 7.821 MB / 0.5543 GB, free: 61.11 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/0.5484, allocations: 129.7 kB / 0.5544 GB, free: 60.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.508, allocations: 0 / 0.5544 GB, free: 60.91 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)