Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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 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_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.001471/0.001471, allocations: 108 kB / 15.61 MB, free: 152 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.397/1.397, 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.001472/0.001472, allocations: 191.6 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5006/0.5006, allocations: 91.9 MB / 431.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 83.88 kB / 0.502 GB, free: 7.648 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3482, allocations: 71.26 MB / 0.5716 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.00562/0.3539, allocations: 6.517 MB / 0.5779 GB, free: 32.98 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003459/0.3573, allocations: 1.956 MB / 0.5799 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005075/0.3579, allocations: 14.81 kB / 0.5799 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006033/0.3585, allocations: 238.5 kB / 0.5801 GB, free: 31.51 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.3601, allocations: 0.7979 MB / 0.5809 GB, free: 30.99 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.3612, allocations: 0.6302 MB / 0.5815 GB, free: 30.67 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.3623, allocations: 1.569 MB / 0.583 GB, free: 29.9 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000388/0.3627, allocations: 322.4 kB / 0.5833 GB, free: 29.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005865/0.3633, allocations: 0.6537 MB / 0.584 GB, free: 29.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006524/0.364, allocations: 0.8222 MB / 0.5848 GB, free: 29.06 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.3641, allocations: 119.7 kB / 0.5849 GB, free: 29.06 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004308/0.3646, allocations: 263.5 kB / 0.5851 GB, free: 29.01 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.3648, allocations: 328.4 kB / 0.5854 GB, free: 28.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004334/0.3652, allocations: 0.6717 MB / 0.5861 GB, free: 28.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.3665, allocations: 1.639 MB / 0.5877 GB, free: 27.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3665, allocations: 1.062 kB / 0.5877 GB, free: 27.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3665, allocations: 4 kB / 0.5877 GB, free: 27.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.3665, allocations: 0 / 0.5877 GB, free: 27.6 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008352/0.3749, allocations: 2.686 MB / 0.5903 GB, free: 26.33 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3749, allocations: 8.812 kB / 0.5903 GB, free: 26.33 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.3751, allocations: 133.1 kB / 0.5905 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004957/0.38, allocations: 0.7706 MB / 0.5912 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.3814, allocations: 0.8905 MB / 0.5921 GB, free: 25.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002533/0.3817, allocations: 252.9 kB / 0.5923 GB, free: 25.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3819, allocations: 87.62 kB / 0.5924 GB, free: 25.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.3838, allocations: 1.09 MB / 0.5935 GB, free: 24.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.3839, allocations: 3.938 kB / 0.5935 GB, free: 24.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/0.384, allocations: 31.88 kB / 0.5935 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.384, allocations: 17.19 kB / 0.5935 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.386, allocations: 0.9842 MB / 0.5945 GB, free: 24.46 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.006207/0.3922, allocations: 3.817 MB / 0.5982 GB, free: 22.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007379/0.3996, allocations: 2.37 MB / 0.6005 GB, free: 21.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.401, allocations: 0.6702 MB / 0.6012 GB, free: 21.15 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.4011, allocations: 20.88 kB / 0.6012 GB, free: 21.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001642/0.4027, allocations: 0.8113 MB / 0.602 GB, free: 20.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.607e-06/0.4027, allocations: 4 kB / 0.602 GB, free: 20.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.0296/0.4323, allocations: 7.19 MB / 0.609 GB, free: 19.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.4325, allocations: 119.3 kB / 0.6091 GB, free: 19.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.4343, allocations: 1.088 MB / 0.6102 GB, free: 18.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.4345, allocations: 43.2 kB / 0.6102 GB, free: 18.81 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.4348, allocations: 497.7 kB / 0.6107 GB, free: 18.42 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.4352, allocations: 351.6 kB / 0.6111 GB, free: 18.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004871/0.4357, allocations: 284.3 kB / 0.6113 GB, free: 18.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.4357, allocations: 306.5 kB / 0.6116 GB, free: 17.72 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4373, allocations: 0.7572 MB / 0.6124 GB, free: 17.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.4389, allocations: 0.9247 MB / 0.6133 GB, free: 16.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02248/0.4614, allocations: 5.572 MB / 0.6187 GB, free: 13.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.4614, allocations: 8 kB / 0.6187 GB, free: 13.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01204/0.4735, allocations: 4.36 MB / 0.623 GB, free: 9.359 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.4736, allocations: 59.41 kB / 0.623 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.4736, allocations: 4 kB / 0.623 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005194/0.4788, allocations: 1.596 MB / 0.6246 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.4802, allocations: 275.6 kB / 0.6248 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/0.498, allocations: 8.517 MB / 0.6332 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002087/0.5001, allocations: 202.6 kB / 0.6334 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.5003, allocations: 55.97 kB / 0.6334 GB, free: 14.49 MB / 446.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.0006277/0.5009, allocations: 299.6 kB / 0.6337 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.5012, allocations: 122.5 kB / 0.6338 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/0.5142, allocations: 3.869 MB / 0.6376 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.5142, allocations: 12 kB / 0.6376 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.591e-05/0.5143, allocations: 7.984 kB / 0.6376 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.963e-05/0.5143, allocations: 11.98 kB / 0.6376 GB, free: 10.14 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 postOpt removeSimpleEquations (simulation): time 0.01519/0.5295, allocations: 5.45 MB / 0.6429 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.5296, allocations: 0 / 0.6429 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006371/0.5302, allocations: 103.8 kB / 0.643 GB, free: 4.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005574/0.5358, allocations: 1.599 MB / 0.6446 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000184/0.536, allocations: 27.98 kB / 0.6446 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02082/0.5568, allocations: 9.646 MB / 0.6541 GB, free: 8.898 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/0.5569, allocations: 15.91 kB / 0.6541 GB, free: 8.883 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/0.5717, allocations: 4.721 MB / 0.6587 GB, free: 4.129 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005644/0.5723, allocations: 215.3 kB / 0.6589 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.5725, allocations: 27.94 kB / 0.6589 GB, free: 3.871 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.5737, allocations: 107.9 kB / 0.659 GB, free: 3.766 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006422/0.5744, allocations: 192.7 kB / 0.6592 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.447e-05/0.5745, allocations: 27.98 kB / 0.6592 GB, free: 3.547 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.5756, allocations: 0.7354 MB / 0.6599 GB, free: 2.805 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5756, allocations: 0 / 0.6599 GB, free: 2.805 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001587/0.5772, allocations: 467.6 kB / 0.6604 GB, free: 2.348 MB / 462.1 MB 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.01491/0.5921, allocations: 5.316 MB / 0.6656 GB, free: 12.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006963/0.5991, allocations: 2.556 MB / 0.6681 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5991, allocations: 0 / 0.6681 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004392/0.6035, allocations: 1.599 MB / 0.6696 GB, free: 8.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.6046, allocations: 121.6 kB / 0.6698 GB, free: 8.641 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0401/0.6447, allocations: 16.76 MB / 0.6861 GB, free: 7.426 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008517/0.6456, allocations: 1.128 MB / 0.6872 GB, free: 6.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006052/0.6463, allocations: 116.1 kB / 0.6873 GB, free: 6.152 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007434/0.647, allocations: 479.3 kB / 0.6878 GB, free: 5.684 MB / 494.1 MB Notification: Performance of SimCode: time 5.41e-07/0.647, allocations: 0 / 0.6878 GB, free: 5.684 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07294/0.72, allocations: 33.85 MB / 0.7208 GB, free: 4.016 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.95, allocations: 19.47 kB / 0.7209 GB, free: 4 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)