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.00794/0.00794, allocations: 101.2 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 239.4 MB, free: 4.379 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.001642/0.001642, allocations: 192.4 kB / 289.7 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4722/0.4722, allocations: 78.53 MB / 418.4 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 79.83 kB / 0.5531 GB, free: 1.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.329, allocations: 68.17 MB / 0.6197 GB, free: 9.262 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006313/0.3354, allocations: 6.561 MB / 0.6261 GB, free: 3.531 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.3393, allocations: 1.974 MB / 0.6281 GB, free: 1.551 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.3407, allocations: 8 kB / 0.6281 GB, free: 1.543 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007515/0.3415, allocations: 238 kB / 0.6283 GB, free: 1.309 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.3433, allocations: 0.7953 MB / 0.6291 GB, free: 0.5156 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.001129/0.3444, allocations: 0.6267 MB / 0.6297 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.346, allocations: 1.588 MB / 0.6312 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004543/0.3465, allocations: 324.7 kB / 0.6315 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007166/0.3472, allocations: 0.6613 MB / 0.6322 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008347/0.3481, allocations: 0.8206 MB / 0.633 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.3482, allocations: 124 kB / 0.6331 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004695/0.3487, allocations: 263.9 kB / 0.6334 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002561/0.349, allocations: 330.6 kB / 0.6337 GB, free: 11.78 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004618/0.3495, allocations: 0.6641 MB / 0.6343 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.3508, allocations: 1.666 MB / 0.6359 GB, free: 9.441 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3508, allocations: 0 / 0.6359 GB, free: 9.441 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3508, allocations: 0 / 0.6359 GB, free: 9.441 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.3509, allocations: 0 / 0.6359 GB, free: 9.441 MB / 446.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.008269/0.3591, allocations: 2.688 MB / 0.6386 GB, free: 6.684 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3592, allocations: 12.03 kB / 0.6386 GB, free: 6.672 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.3593, allocations: 126.6 kB / 0.6387 GB, free: 6.539 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004863/0.3642, allocations: 0.7749 MB / 0.6395 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001686/0.3659, allocations: 0.8864 MB / 0.6403 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/0.3662, allocations: 252.2 kB / 0.6406 GB, free: 4.535 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.3664, allocations: 87.91 kB / 0.6406 GB, free: 4.449 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002209/0.3686, allocations: 1.086 MB / 0.6417 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3687, allocations: 4 kB / 0.6417 GB, free: 3.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.994e-05/0.3688, allocations: 32 kB / 0.6417 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.3688, allocations: 19.94 kB / 0.6418 GB, free: 3.297 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.3709, allocations: 0.9955 MB / 0.6427 GB, free: 2.301 MB / 446.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.006704/0.3776, allocations: 3.793 MB / 0.6464 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007343/0.385, allocations: 2.387 MB / 0.6488 GB, free: 11.85 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.3864, allocations: 0.6723 MB / 0.6494 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.3865, allocations: 20.98 kB / 0.6494 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001676/0.3882, allocations: 0.8216 MB / 0.6502 GB, free: 10.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 4.118e-06/0.3883, allocations: 0 / 0.6502 GB, free: 10.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02885/0.4171, allocations: 7.081 MB / 0.6572 GB, free: 3.168 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.331e-05/0.4172, allocations: 115.8 kB / 0.6573 GB, free: 3.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.4191, allocations: 1.083 MB / 0.6583 GB, free: 1.934 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.4193, allocations: 41.7 kB / 0.6584 GB, free: 1.887 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004012/0.4197, allocations: 496.8 kB / 0.6588 GB, free: 1.395 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004476/0.4202, allocations: 362.8 kB / 0.6592 GB, free: 1.035 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006572/0.4209, allocations: 291.4 kB / 0.6595 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.603e-05/0.421, allocations: 301.1 kB / 0.6598 GB, free: 460 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/0.4226, allocations: 0.7653 MB / 0.6605 GB, free: 15.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.4243, allocations: 0.942 MB / 0.6614 GB, free: 14.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02303/0.4474, allocations: 5.571 MB / 0.6669 GB, free: 9.043 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.4474, allocations: 0 / 0.6669 GB, free: 9.043 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0141/0.4616, allocations: 4.34 MB / 0.6711 GB, free: 4.676 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.118e-05/0.4617, allocations: 55.41 kB / 0.6712 GB, free: 4.609 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.4617, allocations: 4 kB / 0.6712 GB, free: 4.605 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005472/0.4672, allocations: 1.516 MB / 0.6726 GB, free: 3.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4687, allocations: 295.6 kB / 0.6729 GB, free: 2.797 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01986/0.4886, allocations: 8.26 MB / 0.681 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.4906, allocations: 202.8 kB / 0.6812 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003037/0.491, allocations: 55.97 kB / 0.6812 GB, free: 10.12 MB / 494.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.0008848/0.4919, allocations: 309.8 kB / 0.6815 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003873/0.4923, allocations: 130.3 kB / 0.6817 GB, free: 9.684 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01281/0.5051, allocations: 3.873 MB / 0.6854 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.5051, allocations: 15.98 kB / 0.6855 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/0.5052, allocations: 8 kB / 0.6855 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.571e-05/0.5052, allocations: 3.984 kB / 0.6855 GB, free: 5.746 MB / 494.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.01528/0.5205, allocations: 5.456 MB / 0.6908 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/0.5205, allocations: 4 kB / 0.6908 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006543/0.5212, allocations: 103.8 kB / 0.6909 GB, free: 80 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005606/0.5268, allocations: 1.602 MB / 0.6925 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/0.527, allocations: 23.98 kB / 0.6925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/0.5474, allocations: 9.603 MB / 0.7019 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5475, allocations: 0 / 0.7019 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/0.562, allocations: 4.735 MB / 0.7065 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/0.5625, allocations: 227.2 kB / 0.7067 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003218/0.5628, allocations: 20 kB / 0.7067 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.5641, allocations: 107.9 kB / 0.7068 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006163/0.5648, allocations: 192.7 kB / 0.707 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.5649, allocations: 31.98 kB / 0.707 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001152/0.566, allocations: 0.7274 MB / 0.7077 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5661, allocations: 0 / 0.7077 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001549/0.5676, allocations: 471.5 kB / 0.7082 GB, free: 14 MB / 0.5137 GB 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.01491/0.5825, allocations: 5.33 MB / 0.7134 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006507/0.5891, allocations: 2.502 MB / 0.7158 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.5891, allocations: 192 / 0.7158 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00445/0.5936, allocations: 1.61 MB / 0.7174 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5948, allocations: 115.1 kB / 0.7175 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03927/0.634, allocations: 16 MB / 0.7332 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008382/0.6349, allocations: 1.124 MB / 0.7343 GB, free: 2.938 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005834/0.6355, allocations: 116 kB / 0.7344 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000709/0.6363, allocations: 471.3 kB / 0.7348 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of SimCode: time 7.91e-07/0.6363, allocations: 4 kB / 0.7348 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3286/0.9648, allocations: 35.53 MB / 0.7695 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/14.21, allocations: 13.83 kB / 0.7695 GB, free: 137.9 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)