Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.001053/0.001053, allocations: 175.8 kB / 15.45 MB, free: 5.844 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.408/1.408, allocations: 223.2 MB / 239.5 MB, free: 15.71 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.0009725/0.0009725, allocations: 96.22 kB / 290.6 MB, free: 4.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.615/0.615, allocations: 78.62 MB / 420.4 MB, free: 36.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003786, allocations: 8 kB / 0.4889 GB, free: 6.746 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 69.36 MB / 0.5566 GB, free: 1.324 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006568/0.1471, allocations: 6.396 MB / 0.5629 GB, free: 10.89 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.00424/0.1513, allocations: 1.99 MB / 0.5648 GB, free: 8.898 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007374/0.1521, allocations: 12 kB / 0.5648 GB, free: 8.887 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006442/0.1528, allocations: 186.8 kB / 0.565 GB, free: 8.703 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001974/0.1547, allocations: 0.707 MB / 0.5657 GB, free: 7.996 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.1561, allocations: 0.5798 MB / 0.5662 GB, free: 7.422 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.1581, allocations: 1.499 MB / 0.5677 GB, free: 5.918 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005531/0.1587, allocations: 289.5 kB / 0.568 GB, free: 5.625 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.1598, allocations: 0.5676 MB / 0.5685 GB, free: 5.055 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008749/0.1607, allocations: 0.7464 MB / 0.5693 GB, free: 4.305 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.1608, allocations: 60 kB / 0.5693 GB, free: 4.246 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005071/0.1613, allocations: 191.9 kB / 0.5695 GB, free: 4.059 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.1616, allocations: 254.7 kB / 0.5697 GB, free: 3.809 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005741/0.1622, allocations: 0.6266 MB / 0.5704 GB, free: 3.172 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.1637, allocations: 1.552 MB / 0.5719 GB, free: 1.613 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1638, allocations: 0 / 0.5719 GB, free: 1.613 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1638, allocations: 0 / 0.5719 GB, free: 1.613 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.422e-05/0.1638, allocations: 4 kB / 0.5719 GB, free: 1.609 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.2664/0.4302, allocations: 2.488 MB / 0.5743 GB, free: 44.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.4302, allocations: 9.656 kB / 0.5743 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003128/0.4306, allocations: 126.8 kB / 0.5744 GB, free: 44.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005261/0.4358, allocations: 0.7776 MB / 0.5752 GB, free: 44.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002626/0.4385, allocations: 0.8853 MB / 0.5761 GB, free: 44.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003769/0.4389, allocations: 264.5 kB / 0.5763 GB, free: 43.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.4392, allocations: 93.36 kB / 0.5764 GB, free: 43.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.4425, allocations: 1.146 MB / 0.5775 GB, free: 43.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.4426, allocations: 2.875 kB / 0.5775 GB, free: 43.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.4427, allocations: 28.69 kB / 0.5776 GB, free: 43.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.4427, allocations: 23.25 kB / 0.5776 GB, free: 43.76 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003309/0.4461, allocations: 1.048 MB / 0.5786 GB, free: 43.75 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009831/0.4559, allocations: 3.908 MB / 0.5824 GB, free: 42.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.4676, allocations: 2.914 MB / 0.5853 GB, free: 42.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00239/0.47, allocations: 0.7422 MB / 0.586 GB, free: 42.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.4702, allocations: 17.41 kB / 0.586 GB, free: 42.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002355/0.4725, allocations: 0.8801 MB / 0.5869 GB, free: 41.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.678e-06/0.4726, allocations: 5.656 kB / 0.5869 GB, free: 41.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.04071/0.5133, allocations: 8.669 MB / 0.5953 GB, free: 41.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.5134, allocations: 121.4 kB / 0.5955 GB, free: 41.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.5154, allocations: 1.089 MB / 0.5965 GB, free: 40.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.5157, allocations: 44.14 kB / 0.5966 GB, free: 40.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.516, allocations: 493 kB / 0.597 GB, free: 40.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004505/0.5165, allocations: 350.4 kB / 0.5974 GB, free: 39.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000281/0.5168, allocations: 147.8 kB / 0.5975 GB, free: 39.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.5168, allocations: 301.1 kB / 0.5978 GB, free: 39.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.5184, allocations: 0.8282 MB / 0.5986 GB, free: 39.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.52, allocations: 1.002 MB / 0.5996 GB, free: 38.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02174/0.5418, allocations: 6.012 MB / 0.6054 GB, free: 36.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/0.5418, allocations: 0 / 0.6054 GB, free: 36.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0142/0.556, allocations: 5.174 MB / 0.6105 GB, free: 35.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.347e-05/0.5562, allocations: 62.64 kB / 0.6106 GB, free: 35.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.5562, allocations: 2.75 kB / 0.6106 GB, free: 35.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00568/0.5619, allocations: 1.785 MB / 0.6123 GB, free: 35.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/0.5636, allocations: 298.4 kB / 0.6126 GB, free: 35.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0209/0.5845, allocations: 8.608 MB / 0.621 GB, free: 31.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.5867, allocations: 242.2 kB / 0.6212 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003439/0.587, allocations: 55.94 kB / 0.6213 GB, free: 31.54 MB / 442.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008806/0.5879, allocations: 300.2 kB / 0.6216 GB, free: 31.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004009/0.5884, allocations: 126.7 kB / 0.6217 GB, free: 31.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/0.6028, allocations: 4.725 MB / 0.6263 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.6029, allocations: 10.27 kB / 0.6263 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-05/0.6029, allocations: 15.28 kB / 0.6263 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-05/0.603, allocations: 6.703 kB / 0.6263 GB, free: 30.18 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.6187, allocations: 6.302 MB / 0.6325 GB, free: 25.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.6188, allocations: 0 / 0.6325 GB, free: 25.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.6195, allocations: 103.8 kB / 0.6326 GB, free: 25.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005337/0.6249, allocations: 1.897 MB / 0.6344 GB, free: 23.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002051/0.6251, allocations: 21.44 kB / 0.6345 GB, free: 23.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/0.6427, allocations: 9.664 MB / 0.6439 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6428, allocations: 0 / 0.6439 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/0.6575, allocations: 5.649 MB / 0.6494 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005983/0.6581, allocations: 228 kB / 0.6496 GB, free: 8.074 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/0.6586, allocations: 16 kB / 0.6496 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.6599, allocations: 145.5 kB / 0.6498 GB, free: 7.918 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006184/0.6606, allocations: 200.7 kB / 0.65 GB, free: 7.723 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.6607, allocations: 28 kB / 0.65 GB, free: 7.695 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.6618, allocations: 0.7274 MB / 0.6507 GB, free: 6.961 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6618, allocations: 0 / 0.6507 GB, free: 6.961 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001694/0.6635, allocations: 476.9 kB / 0.6512 GB, free: 6.496 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/0.6774, allocations: 6.237 MB / 0.6573 GB, free: 228 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006934/0.6844, allocations: 2.783 MB / 0.66 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6844, allocations: 0 / 0.66 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004699/0.6891, allocations: 1.821 MB / 0.6618 GB, free: 11.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.6906, allocations: 116.4 kB / 0.6619 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04533/0.736, allocations: 18.97 MB / 0.6804 GB, free: 8.082 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.7368, allocations: 1.124 MB / 0.6815 GB, free: 6.922 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005974/0.7374, allocations: 118.5 kB / 0.6816 GB, free: 6.805 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006699/0.7381, allocations: 463.3 kB / 0.682 GB, free: 6.352 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7381, allocations: 0 / 0.682 GB, free: 6.352 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06011/0.7982, allocations: 31.11 MB / 0.7124 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.7984, allocations: 256.2 kB / 0.7127 GB, free: 7.352 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.192/3.99, allocations: 0 / 0.7127 GB, free: 7.352 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)