Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_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.006883/0.006883, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.397/1.397, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001829/0.001829, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4719/0.4719, allocations: 78.53 MB / 418.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001773, allocations: 83.81 kB / 0.5532 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4204, allocations: 68.17 MB / 0.6197 GB, free: 9.438 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.00624/0.4267, allocations: 6.509 MB / 0.6261 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003791/0.4305, allocations: 1.958 MB / 0.628 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.4316, allocations: 12 kB / 0.628 GB, free: 1.676 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000855/0.4325, allocations: 237.9 kB / 0.6282 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.4349, allocations: 0.852 MB / 0.6291 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.4362, allocations: 0.6138 MB / 0.6297 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.4385, allocations: 1.577 MB / 0.6312 GB, free: 14.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005837/0.4391, allocations: 328.7 kB / 0.6315 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.4402, allocations: 0.6535 MB / 0.6322 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.4413, allocations: 0.8245 MB / 0.633 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002596/0.4416, allocations: 128 kB / 0.6331 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006296/0.4422, allocations: 263.8 kB / 0.6333 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003194/0.4425, allocations: 330.6 kB / 0.6336 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006487/0.4432, allocations: 0.6641 MB / 0.6343 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001812/0.445, allocations: 1.662 MB / 0.6359 GB, free: 9.539 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.445, allocations: 0 / 0.6359 GB, free: 9.539 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4451, allocations: 0 / 0.6359 GB, free: 9.539 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.869e-05/0.4451, allocations: 3.938 kB / 0.6359 GB, free: 9.535 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.009009/0.4541, allocations: 2.688 MB / 0.6385 GB, free: 6.777 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.4542, allocations: 8.031 kB / 0.6386 GB, free: 6.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001641/0.4543, allocations: 126.6 kB / 0.6387 GB, free: 6.637 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005029/0.4594, allocations: 0.7826 MB / 0.6394 GB, free: 5.852 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.4611, allocations: 0.8863 MB / 0.6403 GB, free: 4.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.4614, allocations: 256.2 kB / 0.6405 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.4616, allocations: 80 kB / 0.6406 GB, free: 4.543 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002068/0.4637, allocations: 1.09 MB / 0.6417 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.4637, allocations: 0 / 0.6417 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.687e-05/0.4638, allocations: 36 kB / 0.6417 GB, free: 3.406 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.4639, allocations: 19.98 kB / 0.6417 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002031/0.4659, allocations: 0.9877 MB / 0.6427 GB, free: 2.398 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.006476/0.4724, allocations: 3.796 MB / 0.6464 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007037/0.4795, allocations: 2.37 MB / 0.6487 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.4809, allocations: 0.675 MB / 0.6494 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.4811, allocations: 13 kB / 0.6494 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001677/0.4827, allocations: 0.8269 MB / 0.6502 GB, free: 10.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 3.426e-06/0.4828, allocations: 0 / 0.6502 GB, free: 10.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.02813/0.5109, allocations: 7.182 MB / 0.6572 GB, free: 3.184 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/0.511, allocations: 123.7 kB / 0.6573 GB, free: 3.039 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/0.5131, allocations: 1.091 MB / 0.6584 GB, free: 1.934 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002925/0.5134, allocations: 41.7 kB / 0.6584 GB, free: 1.887 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/0.5138, allocations: 488.8 kB / 0.6589 GB, free: 1.402 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005536/0.5144, allocations: 355.1 kB / 0.6593 GB, free: 1.051 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007462/0.5152, allocations: 287.4 kB / 0.6595 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5153, allocations: 305.1 kB / 0.6598 GB, free: 476 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.517, allocations: 0.7535 MB / 0.6606 GB, free: 15.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.5188, allocations: 0.9225 MB / 0.6615 GB, free: 14.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02295/0.5418, allocations: 5.563 MB / 0.6669 GB, free: 9.098 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.5418, allocations: 0 / 0.6669 GB, free: 9.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01399/0.5558, allocations: 4.364 MB / 0.6711 GB, free: 4.703 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.16e-05/0.5559, allocations: 59.41 kB / 0.6712 GB, free: 4.633 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.556, allocations: 4 kB / 0.6712 GB, free: 4.629 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00567/0.5617, allocations: 1.596 MB / 0.6728 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.5632, allocations: 275.6 kB / 0.673 GB, free: 2.762 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02024/0.5835, allocations: 8.498 MB / 0.6813 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/0.5855, allocations: 202.6 kB / 0.6815 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/0.5859, allocations: 59.97 kB / 0.6816 GB, free: 9.852 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008252/0.5867, allocations: 300.1 kB / 0.6819 GB, free: 9.539 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004194/0.5871, allocations: 126.5 kB / 0.682 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.5998, allocations: 3.865 MB / 0.6858 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.5999, allocations: 12 kB / 0.6858 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.684e-05/0.5999, allocations: 12 kB / 0.6858 GB, free: 5.488 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.872e-05/0.6, allocations: 3.984 kB / 0.6858 GB, free: 5.484 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.0154/0.6154, allocations: 5.452 MB / 0.6911 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.6154, allocations: 4 kB / 0.6911 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006766/0.6161, allocations: 95.84 kB / 0.6912 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005413/0.6216, allocations: 1.61 MB / 0.6928 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/0.6218, allocations: 20 kB / 0.6928 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02078/0.6426, allocations: 9.634 MB / 0.7022 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6427, allocations: 0 / 0.7022 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/0.6572, allocations: 4.727 MB / 0.7068 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005786/0.6578, allocations: 227.3 kB / 0.707 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000405/0.6582, allocations: 19.94 kB / 0.7071 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.6596, allocations: 107.9 kB / 0.7072 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000731/0.6603, allocations: 196.7 kB / 0.7073 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.6605, allocations: 27.98 kB / 0.7074 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001291/0.6618, allocations: 0.7315 MB / 0.7081 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.71e-07/0.6618, allocations: 0 / 0.7081 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001783/0.6636, allocations: 471.5 kB / 0.7085 GB, free: 13.72 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01466/0.6783, allocations: 5.326 MB / 0.7137 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006824/0.6852, allocations: 2.513 MB / 0.7162 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.6852, allocations: 3.938 kB / 0.7162 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004546/0.6898, allocations: 1.592 MB / 0.7178 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.6913, allocations: 116.5 kB / 0.7179 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04164/0.7329, allocations: 16.01 MB / 0.7335 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009104/0.7339, allocations: 1.12 MB / 0.7346 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000645/0.7346, allocations: 124 kB / 0.7347 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008069/0.7354, allocations: 479.3 kB / 0.7352 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/0.7354, allocations: 0 / 0.7352 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4186/1.154, allocations: 34.27 MB / 0.7686 GB, free: 142.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/15.59, allocations: 4.25 kB / 0.7686 GB, free: 142.5 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)