Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.0009905/0.0009906, allocations: 180.5 kB / 15.45 MB, free: 6.227 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.401/1.401, allocations: 223.3 MB / 239.5 MB, free: 1.613 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.0008626/0.0008627, allocations: 96.88 kB / 290.6 MB, free: 13.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5165/0.5165, allocations: 78.62 MB / 420.4 MB, free: 44.14 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004094/0.0004095, allocations: 12.38 kB / 0.4889 GB, free: 2.43 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4682/0.4686, allocations: 69.35 MB / 0.5566 GB, free: 39.02 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005916/0.4746, allocations: 6.051 MB / 0.5625 GB, free: 36.4 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004044/0.4787, allocations: 1.888 MB / 0.5644 GB, free: 35.61 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009133/0.4796, allocations: 9.688 kB / 0.5644 GB, free: 35.61 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004906/0.4801, allocations: 158.5 kB / 0.5645 GB, free: 35.56 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002168/0.4823, allocations: 0.6723 MB / 0.5652 GB, free: 35.25 MB / 426.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.001514/0.4838, allocations: 0.5497 MB / 0.5657 GB, free: 35.14 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002292/0.4861, allocations: 1.312 MB / 0.567 GB, free: 34.72 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.4867, allocations: 254.5 kB / 0.5672 GB, free: 34.6 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009476/0.4876, allocations: 0.511 MB / 0.5677 GB, free: 34.36 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000734/0.4884, allocations: 0.6948 MB / 0.5684 GB, free: 34.05 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.4885, allocations: 54.44 kB / 0.5685 GB, free: 34.05 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005877/0.4891, allocations: 188.2 kB / 0.5686 GB, free: 34.01 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.4893, allocations: 231.4 kB / 0.5689 GB, free: 33.88 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004713/0.4898, allocations: 0.5823 MB / 0.5694 GB, free: 33.48 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001351/0.4912, allocations: 1.404 MB / 0.5708 GB, free: 32.95 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4912, allocations: 0 / 0.5708 GB, free: 32.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4912, allocations: 0 / 0.5708 GB, free: 32.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.4912, allocations: 0 / 0.5708 GB, free: 32.95 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006966/0.4982, allocations: 2.304 MB / 0.5731 GB, free: 31.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4983, allocations: 8.906 kB / 0.5731 GB, free: 31.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002195/0.4985, allocations: 123.1 kB / 0.5732 GB, free: 31.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004737/0.5032, allocations: 0.7706 MB / 0.5739 GB, free: 31.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.5046, allocations: 0.796 MB / 0.5747 GB, free: 31.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.5049, allocations: 270 kB / 0.575 GB, free: 30.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.505, allocations: 78.25 kB / 0.575 GB, free: 30.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/0.5073, allocations: 1.241 MB / 0.5763 GB, free: 30.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.5073, allocations: 0 / 0.5763 GB, free: 30.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.203e-05/0.5074, allocations: 29.88 kB / 0.5763 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.5074, allocations: 19.66 kB / 0.5763 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.5093, allocations: 1.024 MB / 0.5773 GB, free: 30.07 MB / 426.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.005629/0.515, allocations: 3.622 MB / 0.5808 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006968/0.522, allocations: 2.866 MB / 0.5836 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.5235, allocations: 0.7228 MB / 0.5843 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.5236, allocations: 18.38 kB / 0.5844 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.5236, allocations: 41.84 kB / 0.5844 GB, free: 26.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=92): time 3.376e-06/0.5236, allocations: 0 / 0.5844 GB, free: 26.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.02555/0.5492, allocations: 8.257 MB / 0.5925 GB, free: 25.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.5494, allocations: 102.1 kB / 0.5926 GB, free: 25.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/0.5508, allocations: 0.9638 MB / 0.5935 GB, free: 24.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.551, allocations: 41.89 kB / 0.5935 GB, free: 24.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.5513, allocations: 459.5 kB / 0.594 GB, free: 24.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.5516, allocations: 317.4 kB / 0.5943 GB, free: 24.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.5517, allocations: 133.1 kB / 0.5944 GB, free: 24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.954e-05/0.5518, allocations: 301.1 kB / 0.5947 GB, free: 23.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.5532, allocations: 0.7594 MB / 0.5954 GB, free: 23.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.5547, allocations: 0.9838 MB / 0.5964 GB, free: 22.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02107/0.5758, allocations: 5.485 MB / 0.6018 GB, free: 21.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/0.5759, allocations: 1.188 kB / 0.6018 GB, free: 21.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01456/0.5904, allocations: 4.973 MB / 0.6066 GB, free: 20.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.5905, allocations: 8.25 kB / 0.6066 GB, free: 20.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.5906, allocations: 8.906 kB / 0.6066 GB, free: 20.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005842/0.5964, allocations: 1.797 MB / 0.6084 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.5978, allocations: 256.4 kB / 0.6086 GB, free: 19.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/0.6147, allocations: 8.623 MB / 0.617 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/0.6167, allocations: 198.9 kB / 0.6172 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003062/0.617, allocations: 51.98 kB / 0.6173 GB, free: 11.39 MB / 426.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.001049/0.6181, allocations: 281.1 kB / 0.6176 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/0.6193, allocations: 352.9 kB / 0.6179 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/0.6304, allocations: 4.424 MB / 0.6222 GB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.6305, allocations: 11.94 kB / 0.6222 GB, free: 6.301 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.6305, allocations: 8 kB / 0.6222 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.6305, allocations: 3.984 kB / 0.6222 GB, free: 6.289 MB / 426.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.0136/0.6441, allocations: 5.977 MB / 0.6281 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.6442, allocations: 0 / 0.6281 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005401/0.6447, allocations: 111.8 kB / 0.6282 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005506/0.6502, allocations: 1.868 MB / 0.63 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.6504, allocations: 19.94 kB / 0.63 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01903/0.6694, allocations: 10.81 MB / 0.6406 GB, free: 3.055 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6695, allocations: 3.938 kB / 0.6406 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.6846, allocations: 5.531 MB / 0.646 GB, free: 13.49 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/0.6852, allocations: 211.5 kB / 0.6462 GB, free: 13.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/0.6855, allocations: 20 kB / 0.6462 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.6866, allocations: 127.9 kB / 0.6463 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005514/0.6872, allocations: 168.6 kB / 0.6465 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.091e-05/0.6873, allocations: 24 kB / 0.6465 GB, free: 12.93 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008799/0.6882, allocations: 0.6434 MB / 0.6471 GB, free: 12.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6882, allocations: 4 kB / 0.6471 GB, free: 12.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001557/0.6897, allocations: 435.6 kB / 0.6476 GB, free: 11.85 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01582/0.7056, allocations: 6.125 MB / 0.6535 GB, free: 5.684 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006517/0.7121, allocations: 2.57 MB / 0.656 GB, free: 3.094 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.7122, allocations: 0 / 0.656 GB, free: 3.094 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004108/0.7163, allocations: 1.534 MB / 0.6575 GB, free: 1.547 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.7182, allocations: 369.9 kB / 0.6579 GB, free: 1.176 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04015/0.7584, allocations: 17.84 MB / 0.6753 GB, free: 14.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007059/0.7591, allocations: 1.073 MB / 0.6764 GB, free: 13.75 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004531/0.7596, allocations: 103.3 kB / 0.6765 GB, free: 13.65 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006242/0.7602, allocations: 435.3 kB / 0.6769 GB, free: 13.23 MB / 490.7 MB Notification: Performance of SimCode: time 8.02e-07/0.7602, allocations: 0 / 0.6769 GB, free: 13.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04931/0.8096, allocations: 28.51 MB / 0.7047 GB, free: 0.9648 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.8098, allocations: 268 kB / 0.705 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/3.914, allocations: 0 / 0.705 GB, free: 0.6055 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)