Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_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.001921/0.001927, allocations: 108 kB / 15.61 MB, free: 128 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.611/1.611, allocations: 222.9 MB / 239.3 MB, free: 4.629 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.002209/0.002209, allocations: 192.5 kB / 289.6 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6209/0.6209, allocations: 91.9 MB / 431.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 79.88 kB / 0.502 GB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5021/0.5041, allocations: 71.27 MB / 0.5716 GB, free: 36.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.007143/0.5113, allocations: 6.718 MB / 0.5781 GB, free: 32.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004918/0.5162, allocations: 2.015 MB / 0.5801 GB, free: 31.23 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.5175, allocations: 13.19 kB / 0.5801 GB, free: 31.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009324/0.5185, allocations: 247.3 kB / 0.5804 GB, free: 31.09 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002279/0.5208, allocations: 0.8177 MB / 0.5812 GB, free: 30.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.5221, allocations: 0.6478 MB / 0.5818 GB, free: 30.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001788/0.5239, allocations: 1.661 MB / 0.5834 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006568/0.5246, allocations: 330 kB / 0.5837 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007862/0.5254, allocations: 0.6852 MB / 0.5844 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009616/0.5263, allocations: 0.8808 MB / 0.5852 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001973/0.5265, allocations: 130 kB / 0.5854 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000544/0.5271, allocations: 277.2 kB / 0.5856 GB, free: 28.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.5274, allocations: 343.2 kB / 0.586 GB, free: 28.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000752/0.5281, allocations: 0.702 MB / 0.5867 GB, free: 27.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001844/0.53, allocations: 1.714 MB / 0.5883 GB, free: 27.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.53, allocations: 0 / 0.5883 GB, free: 27.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.53, allocations: 0 / 0.5883 GB, free: 27.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.53, allocations: 3.844 kB / 0.5883 GB, free: 27.03 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.0106/0.5406, allocations: 2.789 MB / 0.5911 GB, free: 25.73 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.5407, allocations: 7.656 kB / 0.5911 GB, free: 25.73 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001704/0.5409, allocations: 127.7 kB / 0.5912 GB, free: 25.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005318/0.5462, allocations: 0.7766 MB / 0.5919 GB, free: 25.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.5482, allocations: 0.917 MB / 0.5928 GB, free: 24.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002674/0.5485, allocations: 257.7 kB / 0.5931 GB, free: 24.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.5487, allocations: 88.34 kB / 0.5932 GB, free: 24.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/0.5509, allocations: 1.108 MB / 0.5942 GB, free: 24.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.551, allocations: 4 kB / 0.5943 GB, free: 24.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.48e-05/0.5511, allocations: 30.84 kB / 0.5943 GB, free: 24.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.52e-05/0.5511, allocations: 18.22 kB / 0.5943 GB, free: 24.17 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002188/0.5533, allocations: 1.008 MB / 0.5953 GB, free: 23.83 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.007362/0.5607, allocations: 3.91 MB / 0.5991 GB, free: 21.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00817/0.5689, allocations: 2.415 MB / 0.6015 GB, free: 20.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.5708, allocations: 0.6933 MB / 0.6021 GB, free: 20.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001765/0.571, allocations: 20.48 kB / 0.6022 GB, free: 20.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/0.5729, allocations: 0.847 MB / 0.603 GB, free: 20.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 3.516e-06/0.5729, allocations: 0 / 0.603 GB, free: 20.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.03377/0.6067, allocations: 7.083 MB / 0.6099 GB, free: 18.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/0.6068, allocations: 117.5 kB / 0.61 GB, free: 18.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/0.6098, allocations: 1.141 MB / 0.6111 GB, free: 18.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003515/0.6102, allocations: 46.98 kB / 0.6112 GB, free: 18.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004045/0.6106, allocations: 0.4961 MB / 0.6117 GB, free: 17.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004094/0.611, allocations: 364.3 kB / 0.612 GB, free: 17.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007267/0.6117, allocations: 302 kB / 0.6123 GB, free: 17.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.6118, allocations: 302.3 kB / 0.6126 GB, free: 16.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.6136, allocations: 0.7936 MB / 0.6134 GB, free: 16.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001953/0.6156, allocations: 0.9713 MB / 0.6143 GB, free: 15.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02756/0.6431, allocations: 5.936 MB / 0.6201 GB, free: 12.35 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-05/0.6432, allocations: 4 kB / 0.6201 GB, free: 12.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01466/0.6578, allocations: 4.516 MB / 0.6245 GB, free: 7.797 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.824e-05/0.658, allocations: 63.33 kB / 0.6246 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.658, allocations: 4 kB / 0.6246 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006076/0.6641, allocations: 1.666 MB / 0.6262 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.6657, allocations: 303.5 kB / 0.6265 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02083/0.6865, allocations: 8.615 MB / 0.6349 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/0.6893, allocations: 210.5 kB / 0.6351 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004786/0.6898, allocations: 63.97 kB / 0.6352 GB, free: 12.71 MB / 446.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.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 order6.delta:VARIABLE(flow=false start = order6.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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001352/0.6912, allocations: 301.8 kB / 0.6355 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006258/0.6918, allocations: 126.4 kB / 0.6356 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0141/0.7059, allocations: 3.924 MB / 0.6394 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-05/0.7061, allocations: 12 kB / 0.6394 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-05/0.7062, allocations: 4 kB / 0.6394 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/0.7062, allocations: 7.984 kB / 0.6394 GB, free: 8.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 postOpt removeSimpleEquations (simulation): time 0.01797/0.7242, allocations: 5.555 MB / 0.6449 GB, free: 2.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.7242, allocations: 0 / 0.6449 GB, free: 2.633 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007801/0.725, allocations: 107.8 kB / 0.645 GB, free: 2.527 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/0.7312, allocations: 1.595 MB / 0.6465 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/0.7313, allocations: 23.98 kB / 0.6465 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02278/0.7541, allocations: 9.638 MB / 0.656 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7542, allocations: 0 / 0.656 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/0.77, allocations: 4.803 MB / 0.6606 GB, free: 2.133 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/0.7708, allocations: 235.1 kB / 0.6609 GB, free: 1.883 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005484/0.7714, allocations: 20 kB / 0.6609 GB, free: 1.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/0.7732, allocations: 111.9 kB / 0.661 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008201/0.7741, allocations: 192.7 kB / 0.6612 GB, free: 1.566 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.7742, allocations: 31.94 kB / 0.6612 GB, free: 1.535 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00222/0.7765, allocations: 0.7713 MB / 0.662 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7765, allocations: 0 / 0.662 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002752/0.7793, allocations: 491.5 kB / 0.6624 GB, free: 284 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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.01712/0.7964, allocations: 5.394 MB / 0.6677 GB, free: 10.83 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00911/0.8055, allocations: 2.656 MB / 0.6703 GB, free: 8.137 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.8056, allocations: 4.188 kB / 0.6703 GB, free: 8.133 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005187/0.8108, allocations: 1.626 MB / 0.6719 GB, free: 6.473 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002155/0.813, allocations: 119.8 kB / 0.672 GB, free: 6.359 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04998/0.863, allocations: 17.57 MB / 0.6892 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.8642, allocations: 1.136 MB / 0.6903 GB, free: 3.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009029/0.8651, allocations: 116.3 kB / 0.6904 GB, free: 3.043 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.8661, allocations: 491.2 kB / 0.6908 GB, free: 2.562 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8661, allocations: 0 / 0.6908 GB, free: 2.562 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1109/0.9771, allocations: 35.17 MB / 0.7252 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.79, allocations: 12.11 kB / 0.7252 GB, free: 15.58 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)