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.001444/0.001444, 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.376/1.376, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001482/0.001482, allocations: 192.5 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4764/0.4764, allocations: 78.54 MB / 418.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 75.88 kB / 497.5 MB, free: 6.309 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1517, allocations: 68.19 MB / 0.5525 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2783/0.43, allocations: 6.554 MB / 0.5589 GB, free: 35.87 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004041/0.4341, allocations: 1.96 MB / 0.5608 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009981/0.4351, allocations: 9.562 kB / 0.5608 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00081/0.436, allocations: 241.4 kB / 0.561 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002033/0.4381, allocations: 0.7956 MB / 0.5618 GB, free: 35.16 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.001231/0.4393, allocations: 0.6288 MB / 0.5624 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.4408, allocations: 1.577 MB / 0.564 GB, free: 34.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004272/0.4412, allocations: 326.8 kB / 0.5643 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007535/0.442, allocations: 0.6509 MB / 0.5649 GB, free: 34.67 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007487/0.4428, allocations: 0.8272 MB / 0.5657 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.443, allocations: 121.8 kB / 0.5658 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005493/0.4435, allocations: 265.8 kB / 0.5661 GB, free: 34.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.4438, allocations: 321.8 kB / 0.5664 GB, free: 34.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004801/0.4442, allocations: 0.6749 MB / 0.567 GB, free: 34.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00141/0.4457, allocations: 1.641 MB / 0.5687 GB, free: 33.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4457, allocations: 0 / 0.5687 GB, free: 33.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4457, allocations: 0 / 0.5687 GB, free: 33.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.4457, allocations: 0 / 0.5687 GB, free: 33.73 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.00878/0.4545, allocations: 2.686 MB / 0.5713 GB, free: 32.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4546, allocations: 8.25 kB / 0.5713 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.4547, allocations: 130 kB / 0.5714 GB, free: 32.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004949/0.4597, allocations: 0.7721 MB / 0.5722 GB, free: 32.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.4616, allocations: 0.8833 MB / 0.573 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.4619, allocations: 262.1 kB / 0.5733 GB, free: 32.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.4621, allocations: 87.19 kB / 0.5734 GB, free: 32.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.4641, allocations: 1.089 MB / 0.5744 GB, free: 31.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.4641, allocations: 0 / 0.5744 GB, free: 31.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.324e-05/0.4642, allocations: 32.38 kB / 0.5745 GB, free: 31.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.4642, allocations: 18.38 kB / 0.5745 GB, free: 31.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.4661, allocations: 0.9894 MB / 0.5754 GB, free: 31.93 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.006309/0.4724, allocations: 3.824 MB / 0.5792 GB, free: 30.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007073/0.4795, allocations: 2.377 MB / 0.5815 GB, free: 29.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.4812, allocations: 0.6736 MB / 0.5821 GB, free: 29.08 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.4814, allocations: 18.48 kB / 0.5822 GB, free: 29.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001664/0.483, allocations: 0.8203 MB / 0.583 GB, free: 28.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.569e-06/0.483, allocations: 2.203 kB / 0.583 GB, free: 28.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02969/0.5127, allocations: 7.077 MB / 0.5899 GB, free: 27.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.5128, allocations: 118.6 kB / 0.59 GB, free: 27.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.515, allocations: 1.081 MB / 0.591 GB, free: 26.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003245/0.5153, allocations: 46.84 kB / 0.5911 GB, free: 26.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004044/0.5157, allocations: 499.1 kB / 0.5916 GB, free: 26.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004297/0.5162, allocations: 356.3 kB / 0.5919 GB, free: 26.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005856/0.5167, allocations: 294.1 kB / 0.5922 GB, free: 25.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.514e-05/0.5168, allocations: 302.6 kB / 0.5925 GB, free: 25.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.5186, allocations: 0.7645 MB / 0.5932 GB, free: 25.37 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/0.5204, allocations: 0.935 MB / 0.5941 GB, free: 24.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02422/0.5446, allocations: 5.594 MB / 0.5996 GB, free: 23.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5447, allocations: 4.969 kB / 0.5996 GB, free: 23.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01464/0.5593, allocations: 4.334 MB / 0.6038 GB, free: 22.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.407e-05/0.5594, allocations: 63.36 kB / 0.6039 GB, free: 21.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.5595, allocations: 3.781 kB / 0.6039 GB, free: 21.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005915/0.5654, allocations: 1.512 MB / 0.6054 GB, free: 21.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.5671, allocations: 296.4 kB / 0.6057 GB, free: 21.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0198/0.5869, allocations: 8.271 MB / 0.6137 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.589, allocations: 202.8 kB / 0.6139 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.5891, allocations: 55.97 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.0006186/0.5898, allocations: 299.2 kB / 0.6143 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.59, allocations: 131.9 kB / 0.6144 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.6015, allocations: 3.877 MB / 0.6182 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.6016, allocations: 12 kB / 0.6182 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.6016, allocations: 4 kB / 0.6182 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.642e-05/0.6016, allocations: 3.984 kB / 0.6182 GB, free: 11.25 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.01342/0.6151, allocations: 5.454 MB / 0.6235 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.6151, allocations: 4.719 kB / 0.6235 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000661/0.6158, allocations: 99.83 kB / 0.6236 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005185/0.621, allocations: 1.615 MB / 0.6252 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.6212, allocations: 20 kB / 0.6252 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02049/0.6417, allocations: 9.609 MB / 0.6346 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6418, allocations: 4 kB / 0.6346 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/0.6572, allocations: 4.738 MB / 0.6392 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006128/0.6579, allocations: 227.2 kB / 0.6395 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004655/0.6584, allocations: 20 kB / 0.6395 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/0.6599, allocations: 109.2 kB / 0.6396 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007103/0.6606, allocations: 196.7 kB / 0.6398 GB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.6608, allocations: 27.98 kB / 0.6398 GB, free: 4.676 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.6622, allocations: 0.7313 MB / 0.6405 GB, free: 3.938 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6622, allocations: 0 / 0.6405 GB, free: 3.938 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001969/0.6642, allocations: 467.5 kB / 0.641 GB, free: 3.48 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.01589/0.6801, allocations: 5.326 MB / 0.6462 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007807/0.688, allocations: 2.534 MB / 0.6486 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.688, allocations: 0 / 0.6486 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00483/0.6928, allocations: 1.613 MB / 0.6502 GB, free: 9.898 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.6945, allocations: 120.5 kB / 0.6503 GB, free: 9.785 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04304/0.7376, allocations: 16.77 MB / 0.6667 GB, free: 8.594 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009372/0.7386, allocations: 1.12 MB / 0.6678 GB, free: 7.445 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007256/0.7393, allocations: 120.2 kB / 0.6679 GB, free: 7.328 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008379/0.7402, allocations: 475.2 kB / 0.6684 GB, free: 6.863 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7402, allocations: 0 / 0.6684 GB, free: 6.863 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07653/0.8167, allocations: 33.8 MB / 0.7014 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.24, allocations: 22.73 kB / 0.7014 GB, free: 5.422 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 & /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)