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.001331/0.001331, allocations: 180.5 kB / 15.8 MB, free: 6.34 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.365/1.365, allocations: 223.2 MB / 239.7 MB, free: 1.797 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.0008623/0.0008624, allocations: 92.52 kB / 290.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06288/0.06288, allocations: 8.1 MB / 350.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 12.55 kB / 413.2 MB, free: 89.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1055, allocations: 52.52 MB / 465.7 MB, free: 42 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.511, allocations: 80.59 MB / 0.5335 GB, free: 16.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5114, allocations: 63.5 kB / 0.5335 GB, free: 16.75 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.03351/0.5449, allocations: 12.79 MB / 0.546 GB, free: 31.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.5449, allocations: 4 kB / 0.546 GB, free: 31.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.785e-05/0.545, allocations: 7.688 kB / 0.546 GB, free: 31.35 MB / 378.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.002448/0.5474, allocations: 0.9016 MB / 0.5469 GB, free: 30.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.5475, allocations: 7.938 kB / 0.5469 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.815e-05/0.5476, allocations: 72.77 kB / 0.547 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.5478, allocations: 48.34 kB / 0.547 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.5484, allocations: 382 kB / 0.5474 GB, free: 30.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.5485, allocations: 27.22 kB / 0.5474 GB, free: 30.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.061e-05/0.5486, allocations: 26.62 kB / 0.5475 GB, free: 30.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008779/0.5494, allocations: 451.5 kB / 0.5479 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.5495, allocations: 3.938 kB / 0.5479 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.5495, allocations: 10.97 kB / 0.5479 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.5495, allocations: 7.859 kB / 0.5479 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006819/0.5502, allocations: 454.1 kB / 0.5484 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003179/0.5534, allocations: 2.113 MB / 0.5504 GB, free: 29.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.5545, allocations: 0.6229 MB / 0.551 GB, free: 29.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001842/0.5547, allocations: 91.69 kB / 0.5511 GB, free: 29.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007466/0.5555, allocations: 468.2 kB / 0.5516 GB, free: 28.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 3.136e-06/0.5555, allocations: 0 / 0.5516 GB, free: 28.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.005557/0.5611, allocations: 1.812 MB / 0.5533 GB, free: 28.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.5612, allocations: 198.4 kB / 0.5535 GB, free: 28.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.5615, allocations: 292.9 kB / 0.5538 GB, free: 28.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.5616, allocations: 37.36 kB / 0.5538 GB, free: 28.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.5617, allocations: 176.8 kB / 0.554 GB, free: 28.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.5619, allocations: 162 kB / 0.5542 GB, free: 28.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/0.5619, allocations: 11.19 kB / 0.5542 GB, free: 28.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.5621, allocations: 346.5 kB / 0.5545 GB, free: 27.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.5624, allocations: 236.2 kB / 0.5547 GB, free: 27.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.5628, allocations: 273.9 kB / 0.555 GB, free: 27.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.5632, allocations: 285.6 kB / 0.5553 GB, free: 27.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.5632, allocations: 0 / 0.5553 GB, free: 27.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002817/0.5661, allocations: 1.077 MB / 0.5563 GB, free: 27.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.039e-05/0.5661, allocations: 38.61 kB / 0.5563 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.5662, allocations: 1 kB / 0.5563 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002415/0.5686, allocations: 0.506 MB / 0.5568 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.5688, allocations: 58.03 kB / 0.5569 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00656/0.5754, allocations: 3.815 MB / 0.5606 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.5759, allocations: 46.38 kB / 0.5607 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.5759, allocations: 19 kB / 0.5607 GB, free: 26.11 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "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 () * Number of clocked 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.0003963/0.5763, allocations: 215.3 kB / 0.5609 GB, free: 25.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.974e-05/0.5764, allocations: 35.16 kB / 0.5609 GB, free: 25.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.5793, allocations: 1.172 MB / 0.5621 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.5793, allocations: 5.219 kB / 0.5621 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5793, allocations: 3.953 kB / 0.5621 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.5793, allocations: 1.781 kB / 0.5621 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003954/0.5833, allocations: 1.912 MB / 0.5639 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.5833, allocations: 1.375 kB / 0.5639 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.5836, allocations: 51.45 kB / 0.564 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002289/0.5859, allocations: 0.5084 MB / 0.5645 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/0.5859, allocations: 15.77 kB / 0.5645 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005712/0.5916, allocations: 3.766 MB / 0.5682 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.5917, allocations: 0 / 0.5682 GB, free: 24.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/0.5946, allocations: 1.192 MB / 0.5693 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.5948, allocations: 123 kB / 0.5695 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.5949, allocations: 20.86 kB / 0.5695 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.5953, allocations: 21.34 kB / 0.5695 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.5954, allocations: 47.5 kB / 0.5695 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.853e-05/0.5955, allocations: 15.78 kB / 0.5696 GB, free: 23.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003913/0.5959, allocations: 243.2 kB / 0.5698 GB, free: 23.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5959, allocations: 0 / 0.5698 GB, free: 23.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008407/0.5967, allocations: 180.7 kB / 0.57 GB, free: 23.55 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) * Number of clocked states: 0 () * 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.003277/0.6, allocations: 1.767 MB / 0.5717 GB, free: 22.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.602, allocations: 0.9149 MB / 0.5726 GB, free: 22.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.602, allocations: 1.781 kB / 0.5726 GB, free: 22.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.6033, allocations: 0.6839 MB / 0.5733 GB, free: 22.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.6037, allocations: 36.36 kB / 0.5733 GB, free: 22.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006448/0.6102, allocations: 3.199 MB / 0.5764 GB, free: 21.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.6107, allocations: 0.8192 MB / 0.5772 GB, free: 20.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002157/0.6109, allocations: 50.09 kB / 0.5773 GB, free: 20.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.6111, allocations: 129.4 kB / 0.5774 GB, free: 20.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.492e-06/0.6111, allocations: 0 / 0.5774 GB, free: 20.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.6406, allocations: 13.82 MB / 0.5909 GB, free: 14.72 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/0.6408, allocations: 217.3 kB / 0.5911 GB, free: 14.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/3.055, allocations: 0 / 0.5911 GB, free: 14.47 MB / 378.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)