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.001319/0.001319, allocations: 182.3 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.399/1.399, allocations: 221.4 MB / 235.1 MB, free: 14.44 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.0008552/0.0008551, allocations: 94.48 kB / 286.1 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05364/0.05364, allocations: 8.095 MB / 345.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.559e-05, allocations: 7.203 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09357/0.09362, allocations: 52.52 MB / 458.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.4371, allocations: 79.89 MB / 0.5254 GB, free: 6.113 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001588/0.4373, allocations: 60.03 kB / 0.5254 GB, free: 6.086 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.02477/0.4621, allocations: 9.758 MB / 0.5349 GB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4621, allocations: 0 / 0.5349 GB, free: 14.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.757e-05/0.4622, allocations: 4 kB / 0.5349 GB, free: 14.31 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.001523/0.4637, allocations: 0.6691 MB / 0.5356 GB, free: 13.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4637, allocations: 8.688 kB / 0.5356 GB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.226e-05/0.4638, allocations: 59.75 kB / 0.5357 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.464, allocations: 39.61 kB / 0.5357 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.4645, allocations: 323.1 kB / 0.536 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.4645, allocations: 17.88 kB / 0.536 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.4645, allocations: 19.31 kB / 0.536 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005019/0.465, allocations: 330 kB / 0.5364 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4651, allocations: 0 / 0.5364 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.4651, allocations: 14.69 kB / 0.5364 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.4651, allocations: 11.95 kB / 0.5364 GB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.4655, allocations: 320.4 kB / 0.5367 GB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.4674, allocations: 1.431 MB / 0.5381 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007393/0.4682, allocations: 361 kB / 0.5384 GB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.4684, allocations: 207 kB / 0.5386 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001512/0.4686, allocations: 96.7 kB / 0.5387 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.4691, allocations: 401.3 kB / 0.5391 GB, free: 10.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.743e-06/0.4691, allocations: 0 / 0.5391 GB, free: 10.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.001706/0.4708, allocations: 0.7059 MB / 0.5398 GB, free: 10.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.471, allocations: 242.9 kB / 0.54 GB, free: 10.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.4712, allocations: 253.6 kB / 0.5403 GB, free: 9.863 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.4713, allocations: 33.08 kB / 0.5403 GB, free: 9.828 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.4714, allocations: 157.2 kB / 0.5405 GB, free: 9.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.512e-05/0.4715, allocations: 115.6 kB / 0.5406 GB, free: 9.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.135e-05/0.4715, allocations: 7.438 kB / 0.5406 GB, free: 9.598 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4717, allocations: 337 kB / 0.5409 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.4719, allocations: 158 kB / 0.541 GB, free: 9.191 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.4722, allocations: 219.5 kB / 0.5413 GB, free: 9.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.4725, allocations: 214.1 kB / 0.5415 GB, free: 8.906 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4725, allocations: 3.984 kB / 0.5415 GB, free: 8.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001583/0.4741, allocations: 0.7483 MB / 0.5422 GB, free: 8.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.154e-05/0.4742, allocations: 35.27 kB / 0.5422 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.4742, allocations: 0 / 0.5422 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.4755, allocations: 322.3 kB / 0.5425 GB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.4757, allocations: 43.91 kB / 0.5426 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.4792, allocations: 2.706 MB / 0.5452 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.4796, allocations: 27.06 kB / 0.5452 GB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.4796, allocations: 19.41 kB / 0.5453 GB, free: 5.934 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.0002626/0.4799, allocations: 176.7 kB / 0.5454 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.48, allocations: 35.61 kB / 0.5455 GB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.4817, allocations: 0.7862 MB / 0.5462 GB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.4817, allocations: 4 kB / 0.5462 GB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4817, allocations: 3.984 kB / 0.5462 GB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.4817, allocations: 7.984 kB / 0.5462 GB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000537/0.4823, allocations: 0.5241 MB / 0.5468 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.4823, allocations: 3.953 kB / 0.5468 GB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.4824, allocations: 35.53 kB / 0.5468 GB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.4836, allocations: 306.2 kB / 0.5471 GB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/0.4837, allocations: 14.62 kB / 0.5471 GB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003514/0.4872, allocations: 2.71 MB / 0.5497 GB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4872, allocations: 0 / 0.5497 GB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.4888, allocations: 0.7578 MB / 0.5505 GB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.489, allocations: 123 kB / 0.5506 GB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.369e-05/0.489, allocations: 11.06 kB / 0.5506 GB, free: 1.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.4893, allocations: 19.12 kB / 0.5506 GB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.724e-05/0.4894, allocations: 27.39 kB / 0.5507 GB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.4894, allocations: 11.56 kB / 0.5507 GB, free: 1.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000241/0.4897, allocations: 203.8 kB / 0.5509 GB, free: 1.492 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4897, allocations: 3.938 kB / 0.5509 GB, free: 1.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004959/0.4902, allocations: 129.9 kB / 0.551 GB, free: 1.375 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 (21): * Single equations (assignments): 19 * 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.00189/0.4921, allocations: 1.327 MB / 0.5523 GB, free: 252 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.4934, allocations: 0.6866 MB / 0.553 GB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4934, allocations: 0 / 0.553 GB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008762/0.4943, allocations: 0.5399 MB / 0.5535 GB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.4945, allocations: 20.44 kB / 0.5535 GB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.496, allocations: 0.5809 MB / 0.5541 GB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.4964, allocations: 0.7765 MB / 0.5548 GB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.4966, allocations: 38.94 kB / 0.5549 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.4968, allocations: 91.41 kB / 0.555 GB, free: 13.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4968, allocations: 0 / 0.555 GB, free: 13.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.5201, allocations: 8.861 MB / 0.5636 GB, free: 4.941 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.5204, allocations: 175.6 kB / 0.5638 GB, free: 4.711 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.484, allocations: 0 / 0.5638 GB, free: 4.711 MB / 378.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)