Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 239.3 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 184.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4791/0.4791, allocations: 78.54 MB / 418.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002429/0.002429, allocations: 75.88 kB / 497.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1761, allocations: 68.18 MB / 0.5525 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2829/0.459, allocations: 6.558 MB / 0.5589 GB, free: 36.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.4635, allocations: 1.962 MB / 0.5608 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.4648, allocations: 12.22 kB / 0.5608 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008851/0.4657, allocations: 238.5 kB / 0.561 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002279/0.4681, allocations: 0.7896 MB / 0.5618 GB, free: 35.31 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.001337/0.4694, allocations: 0.6323 MB / 0.5624 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.4711, allocations: 1.577 MB / 0.564 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004628/0.4716, allocations: 326.8 kB / 0.5643 GB, free: 34.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009106/0.4725, allocations: 0.6538 MB / 0.5649 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008004/0.4733, allocations: 0.8218 MB / 0.5657 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.4735, allocations: 121.9 kB / 0.5658 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005346/0.4741, allocations: 259.9 kB / 0.5661 GB, free: 34.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002684/0.4743, allocations: 328.3 kB / 0.5664 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005034/0.4749, allocations: 0.6705 MB / 0.567 GB, free: 34.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001414/0.4763, allocations: 1.643 MB / 0.5686 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.4763, allocations: 2.781 kB / 0.5687 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4763, allocations: 1.094 kB / 0.5687 GB, free: 33.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.4763, allocations: 0 / 0.5687 GB, free: 33.88 MB / 430.1 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.008983/0.4853, allocations: 2.682 MB / 0.5713 GB, free: 32.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4854, allocations: 8.75 kB / 0.5713 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000262/0.4857, allocations: 127.7 kB / 0.5714 GB, free: 32.87 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005161/0.4908, allocations: 0.7705 MB / 0.5722 GB, free: 32.78 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001941/0.4928, allocations: 0.8844 MB / 0.573 GB, free: 32.37 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.4931, allocations: 260.8 kB / 0.5733 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002836/0.4934, allocations: 87.88 kB / 0.5734 GB, free: 32.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/0.4957, allocations: 1.094 MB / 0.5744 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.4958, allocations: 5.719 kB / 0.5744 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.4959, allocations: 27.59 kB / 0.5745 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.4959, allocations: 18.84 kB / 0.5745 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.4979, allocations: 0.9887 MB / 0.5754 GB, free: 32.08 MB / 430.1 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.007274/0.5052, allocations: 3.823 MB / 0.5792 GB, free: 30.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007191/0.5124, allocations: 2.371 MB / 0.5815 GB, free: 29.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.5141, allocations: 0.6815 MB / 0.5821 GB, free: 29.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.5143, allocations: 15.3 kB / 0.5822 GB, free: 29.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001846/0.5161, allocations: 0.8286 MB / 0.583 GB, free: 28.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.96e-06/0.5162, allocations: 0 / 0.583 GB, free: 28.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03113/0.5473, allocations: 7.075 MB / 0.5899 GB, free: 27.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.5474, allocations: 122.6 kB / 0.59 GB, free: 27.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/0.55, allocations: 1.082 MB / 0.5911 GB, free: 26.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003264/0.5504, allocations: 46.36 kB / 0.5911 GB, free: 26.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004489/0.5508, allocations: 489.8 kB / 0.5916 GB, free: 26.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005701/0.5514, allocations: 360.2 kB / 0.5919 GB, free: 26.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009423/0.5523, allocations: 295.1 kB / 0.5922 GB, free: 26.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.5524, allocations: 302.4 kB / 0.5925 GB, free: 25.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.5544, allocations: 0.7638 MB / 0.5932 GB, free: 25.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/0.5564, allocations: 0.9317 MB / 0.5941 GB, free: 25.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02706/0.5835, allocations: 5.594 MB / 0.5996 GB, free: 23.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.503e-05/0.5835, allocations: 5.281 kB / 0.5996 GB, free: 23.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01808/0.6016, allocations: 4.331 MB / 0.6038 GB, free: 22.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.641e-05/0.6018, allocations: 69 kB / 0.6039 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/0.6018, allocations: 2.312 kB / 0.6039 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005947/0.6078, allocations: 1.512 MB / 0.6054 GB, free: 21.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.6094, allocations: 304.3 kB / 0.6057 GB, free: 21.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/0.6291, allocations: 8.257 MB / 0.6137 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/0.6313, allocations: 206.8 kB / 0.6139 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003448/0.6317, allocations: 60.53 kB / 0.614 GB, free: 15.62 MB / 430.1 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.0009062/0.6326, allocations: 304.8 kB / 0.6143 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004047/0.6331, allocations: 130.3 kB / 0.6144 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/0.6451, allocations: 3.873 MB / 0.6182 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/0.6451, allocations: 8 kB / 0.6182 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.419e-05/0.6451, allocations: 8 kB / 0.6182 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-05/0.6452, allocations: 5.203 kB / 0.6182 GB, free: 11.26 MB / 430.1 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.01442/0.6596, allocations: 5.45 MB / 0.6235 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.6597, allocations: 4.031 kB / 0.6235 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.6603, allocations: 105.5 kB / 0.6236 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005318/0.6657, allocations: 1.613 MB / 0.6252 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002424/0.6659, allocations: 27.98 kB / 0.6252 GB, free: 3.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02106/0.687, allocations: 9.606 MB / 0.6346 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6871, allocations: 0 / 0.6346 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/0.7022, allocations: 4.744 MB / 0.6392 GB, free: 5.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006351/0.7029, allocations: 223.2 kB / 0.6395 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004883/0.7034, allocations: 24 kB / 0.6395 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.7049, allocations: 111.3 kB / 0.6396 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007438/0.7057, allocations: 192.7 kB / 0.6398 GB, free: 4.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.7058, allocations: 31.98 kB / 0.6398 GB, free: 4.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001446/0.7073, allocations: 0.7313 MB / 0.6405 GB, free: 3.941 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7073, allocations: 0 / 0.6405 GB, free: 3.941 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002087/0.7094, allocations: 467.5 kB / 0.641 GB, free: 3.484 MB / 446.1 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.01522/0.7246, allocations: 5.32 MB / 0.6462 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007566/0.7322, allocations: 2.535 MB / 0.6486 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.7323, allocations: 0.75 kB / 0.6486 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005037/0.7373, allocations: 1.612 MB / 0.6502 GB, free: 9.906 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.7391, allocations: 115 kB / 0.6503 GB, free: 9.797 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04454/0.7837, allocations: 16.78 MB / 0.6667 GB, free: 8.594 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.7849, allocations: 1.116 MB / 0.6678 GB, free: 7.449 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008802/0.7858, allocations: 121.2 kB / 0.6679 GB, free: 7.332 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009044/0.7868, allocations: 471.3 kB / 0.6684 GB, free: 6.871 MB / 478.1 MB Notification: Performance of SimCode: time 1.513e-06/0.7868, allocations: 3.938 kB / 0.6684 GB, free: 6.867 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07687/0.8637, allocations: 33.79 MB / 0.7014 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.73, allocations: 18.67 kB / 0.7014 GB, free: 5.453 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)