Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.0008975/0.0008974, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.249/1.249, allocations: 223.2 MB / 238.9 MB, free: 5.574 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.001071/0.001071, allocations: 177.1 kB / 290.2 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4343/0.4343, allocations: 79.45 MB / 420.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.000359, allocations: 12 kB / 0.4891 GB, free: 5.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3227, allocations: 69.5 MB / 0.557 GB, free: 37.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.004794/0.3276, allocations: 5.742 MB / 0.5626 GB, free: 37.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.3311, allocations: 1.95 MB / 0.5645 GB, free: 37.04 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007479/0.3319, allocations: 10.41 kB / 0.5645 GB, free: 37.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006258/0.3325, allocations: 168.8 kB / 0.5646 GB, free: 36.97 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00182/0.3344, allocations: 0.7216 MB / 0.5653 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.3355, allocations: 0.5129 MB / 0.5658 GB, free: 36.87 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.337, allocations: 1.009 MB / 0.5668 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003888/0.3374, allocations: 269.8 kB / 0.5671 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007706/0.3382, allocations: 0.5597 MB / 0.5676 GB, free: 36.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007043/0.3389, allocations: 0.7082 MB / 0.5683 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.339, allocations: 56.44 kB / 0.5684 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004315/0.3395, allocations: 175.8 kB / 0.5685 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.3397, allocations: 248.4 kB / 0.5688 GB, free: 36.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.3399, allocations: 230.2 kB / 0.569 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.341, allocations: 1.185 MB / 0.5702 GB, free: 35.69 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.341, allocations: 0 / 0.5702 GB, free: 35.69 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.341, allocations: 1.406 kB / 0.5702 GB, free: 35.69 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.341, allocations: 0 / 0.5702 GB, free: 35.69 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.007955/0.349, allocations: 2.511 MB / 0.5726 GB, free: 34.6 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.349, allocations: 8.625 kB / 0.5726 GB, free: 34.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002858/0.3493, allocations: 126.4 kB / 0.5727 GB, free: 34.51 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005014/0.3543, allocations: 0.786 MB / 0.5735 GB, free: 34.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.356, allocations: 0.8389 MB / 0.5743 GB, free: 33.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.3563, allocations: 272.8 kB / 0.5746 GB, free: 33.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.3565, allocations: 83.19 kB / 0.5747 GB, free: 33.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.3584, allocations: 1.131 MB / 0.5758 GB, free: 33.15 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3584, allocations: 4 kB / 0.5758 GB, free: 33.15 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.724e-05/0.3585, allocations: 32.95 kB / 0.5758 GB, free: 33.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3586, allocations: 22.33 kB / 0.5758 GB, free: 33.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.3604, allocations: 1.049 MB / 0.5769 GB, free: 32.78 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.00641/0.3668, allocations: 4.134 MB / 0.5809 GB, free: 30.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007252/0.3741, allocations: 2.911 MB / 0.5837 GB, free: 29.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.3743, allocations: 28.27 kB / 0.5838 GB, free: 29.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001674/0.376, allocations: 0.8688 MB / 0.5846 GB, free: 29.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.256e-06/0.376, allocations: 0 / 0.5846 GB, free: 29.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03009/0.4061, allocations: 8.627 MB / 0.593 GB, free: 27.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.4062, allocations: 113.4 kB / 0.5931 GB, free: 27.42 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.4077, allocations: 1.07 MB / 0.5942 GB, free: 26.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.4079, allocations: 49.86 kB / 0.5942 GB, free: 26.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.4082, allocations: 495.3 kB / 0.5947 GB, free: 26.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003095/0.4085, allocations: 359.9 kB / 0.5951 GB, free: 26.26 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.4086, allocations: 30.88 kB / 0.5951 GB, free: 26.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.4087, allocations: 365.2 kB / 0.5954 GB, free: 25.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.4103, allocations: 0.8179 MB / 0.5962 GB, free: 25.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.412, allocations: 0.989 MB / 0.5972 GB, free: 25.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.4138, allocations: 0.9547 MB / 0.5981 GB, free: 24.72 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4138, allocations: 0.9688 kB / 0.5981 GB, free: 24.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01494/0.4288, allocations: 5.156 MB / 0.6032 GB, free: 23.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.32e-05/0.4289, allocations: 61.31 kB / 0.6032 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.4289, allocations: 6.281 kB / 0.6032 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006792/0.4357, allocations: 1.898 MB / 0.6051 GB, free: 23.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.4375, allocations: 298.6 kB / 0.6054 GB, free: 23.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/0.4581, allocations: 9.451 MB / 0.6146 GB, free: 17.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.46, allocations: 234.7 kB / 0.6148 GB, free: 17.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.4602, allocations: 55.97 kB / 0.6149 GB, free: 17.17 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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005299/0.4607, allocations: 309.1 kB / 0.6152 GB, free: 16.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.4609, allocations: 126.4 kB / 0.6153 GB, free: 16.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01237/0.4733, allocations: 4.712 MB / 0.6199 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.4733, allocations: 8.75 kB / 0.6199 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.4733, allocations: 8 kB / 0.6199 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/0.4734, allocations: 7.938 kB / 0.6199 GB, free: 11.97 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.01387/0.4872, allocations: 6.355 MB / 0.6261 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.4873, allocations: 1.172 kB / 0.6261 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006021/0.4879, allocations: 104.8 kB / 0.6262 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005247/0.4931, allocations: 1.876 MB / 0.6281 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.4933, allocations: 20 kB / 0.6281 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01976/0.5131, allocations: 10.12 MB / 0.638 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5131, allocations: 0 / 0.638 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/0.5283, allocations: 5.65 MB / 0.6435 GB, free: 3.406 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.5288, allocations: 236.3 kB / 0.6437 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.5289, allocations: 19.94 kB / 0.6437 GB, free: 3.137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.5301, allocations: 141.3 kB / 0.6438 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/0.5306, allocations: 196.7 kB / 0.644 GB, free: 2.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.5307, allocations: 27.98 kB / 0.6441 GB, free: 2.781 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.5318, allocations: 0.7196 MB / 0.6448 GB, free: 2.055 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5318, allocations: 0 / 0.6448 GB, free: 2.055 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001393/0.5332, allocations: 471.6 kB / 0.6452 GB, free: 1.594 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(19,24.4%) 13} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01542/0.5486, allocations: 6.296 MB / 0.6514 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006828/0.5555, allocations: 2.785 MB / 0.6541 GB, free: 8.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5555, allocations: 0 / 0.6541 GB, free: 8.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004613/0.5601, allocations: 1.793 MB / 0.6558 GB, free: 6.598 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009403/0.5611, allocations: 106.8 kB / 0.6559 GB, free: 6.496 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.5668, allocations: 5.023 MB / 0.6608 GB, free: 1.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.5675, allocations: 1.143 MB / 0.662 GB, free: 244 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004356/0.5679, allocations: 116.7 kB / 0.6621 GB, free: 128 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000588/0.5685, allocations: 471.3 kB / 0.6625 GB, free: 15.66 MB / 478.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5685, allocations: 0 / 0.6625 GB, free: 15.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05111/0.6196, allocations: 31.15 MB / 0.6929 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.6199, allocations: 254.9 kB / 0.6932 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.519/3.139, allocations: 0 / 0.6932 GB, free: 0.7305 MB / 494.1 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: