Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.0009688/0.0009687, allocations: 102 kB / 15.06 MB, free: 1.098 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.262/1.262, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.001084/0.001084, allocations: 185 kB / 290.2 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4513/0.4513, allocations: 79.45 MB / 420.7 MB, free: 4.02 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 12 kB / 0.4891 GB, free: 5.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3258, allocations: 69.5 MB / 0.557 GB, free: 37.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004501/0.3303, allocations: 5.427 MB / 0.5623 GB, free: 37.35 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.3335, allocations: 1.851 MB / 0.5641 GB, free: 37.09 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006325/0.3342, allocations: 10.75 kB / 0.5641 GB, free: 37.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.3346, allocations: 151.9 kB / 0.5642 GB, free: 37.03 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.3362, allocations: 0.6775 MB / 0.5649 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.3373, allocations: 0.5001 MB / 0.5654 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.3384, allocations: 0.8941 MB / 0.5662 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003399/0.3388, allocations: 232.9 kB / 0.5665 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005449/0.3393, allocations: 0.4918 MB / 0.567 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.3399, allocations: 0.6612 MB / 0.5676 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.34, allocations: 59.22 kB / 0.5677 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003573/0.3404, allocations: 165.7 kB / 0.5678 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.3406, allocations: 226.7 kB / 0.568 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3407, allocations: 213.8 kB / 0.5682 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008348/0.3415, allocations: 1.048 MB / 0.5693 GB, free: 36.05 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.3416, allocations: 1.625 kB / 0.5693 GB, free: 36.05 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3416, allocations: 0 / 0.5693 GB, free: 36.05 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.3416, allocations: 1.688 kB / 0.5693 GB, free: 36.05 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.00741/0.349, allocations: 2.321 MB / 0.5715 GB, free: 35.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3491, allocations: 8.906 kB / 0.5715 GB, free: 35.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002232/0.3493, allocations: 118.3 kB / 0.5716 GB, free: 35.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005011/0.3543, allocations: 0.7672 MB / 0.5724 GB, free: 34.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.3556, allocations: 0.7523 MB / 0.5731 GB, free: 34.45 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/0.3558, allocations: 273 kB / 0.5734 GB, free: 34.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.356, allocations: 81.69 kB / 0.5735 GB, free: 34.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.3581, allocations: 1.243 MB / 0.5747 GB, free: 33.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.3582, allocations: 0.7969 kB / 0.5747 GB, free: 33.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.341e-05/0.3582, allocations: 25.44 kB / 0.5747 GB, free: 33.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3583, allocations: 17.5 kB / 0.5747 GB, free: 33.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.3601, allocations: 1.017 MB / 0.5757 GB, free: 33.39 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.005831/0.3659, allocations: 3.85 MB / 0.5795 GB, free: 30.97 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00732/0.3733, allocations: 2.861 MB / 0.5823 GB, free: 30.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001647/0.3735, allocations: 10.97 kB / 0.5823 GB, free: 30.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.3735, allocations: 50.88 kB / 0.5823 GB, free: 30.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.206e-06/0.3735, allocations: 0 / 0.5823 GB, free: 30.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02948/0.403, allocations: 8.399 MB / 0.5905 GB, free: 28.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/0.4032, allocations: 106.4 kB / 0.5906 GB, free: 28.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.4044, allocations: 0.9535 MB / 0.5916 GB, free: 28.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001742/0.4046, allocations: 41.86 kB / 0.5916 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.4049, allocations: 458 kB / 0.592 GB, free: 27.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002693/0.4051, allocations: 316.4 kB / 0.5923 GB, free: 27.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.413e-05/0.4052, allocations: 25.5 kB / 0.5924 GB, free: 27.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.412e-05/0.4053, allocations: 365 kB / 0.5927 GB, free: 27.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.4068, allocations: 0.7498 MB / 0.5934 GB, free: 26.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.4085, allocations: 0.9657 MB / 0.5944 GB, free: 26.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.41, allocations: 0.838 MB / 0.5952 GB, free: 25.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.4101, allocations: 2.75 kB / 0.5952 GB, free: 25.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01494/0.425, allocations: 4.915 MB / 0.6 GB, free: 24.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.4251, allocations: 6.75 kB / 0.6 GB, free: 24.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.4251, allocations: 6.812 kB / 0.6 GB, free: 24.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006652/0.4318, allocations: 1.873 MB / 0.6019 GB, free: 24.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.4331, allocations: 254.7 kB / 0.6021 GB, free: 24.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0216/0.4547, allocations: 9.195 MB / 0.6111 GB, free: 20.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4564, allocations: 195.9 kB / 0.6113 GB, free: 20.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4565, allocations: 57.72 kB / 0.6113 GB, free: 20.34 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 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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004696/0.457, allocations: 267.1 kB / 0.6116 GB, free: 20.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009003/0.4579, allocations: 361 kB / 0.6119 GB, free: 19.76 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/0.4702, allocations: 4.411 MB / 0.6162 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4702, allocations: 15.95 kB / 0.6162 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4702, allocations: 11.98 kB / 0.6163 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.4703, allocations: 3.984 kB / 0.6163 GB, free: 15.74 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.01388/0.4841, allocations: 6.027 MB / 0.6221 GB, free: 9.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.4842, allocations: 4 kB / 0.6221 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/0.4847, allocations: 111.8 kB / 0.6223 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005389/0.4901, allocations: 1.865 MB / 0.6241 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.826e-05/0.4902, allocations: 24.86 kB / 0.6241 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01878/0.509, allocations: 11.2 MB / 0.635 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5091, allocations: 0 / 0.635 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01616/0.5252, allocations: 5.525 MB / 0.6404 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005198/0.5258, allocations: 215.4 kB / 0.6406 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.526, allocations: 16 kB / 0.6407 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.5271, allocations: 125.7 kB / 0.6408 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005383/0.5276, allocations: 172.7 kB / 0.6409 GB, free: 5.957 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.238e-05/0.5277, allocations: 24 kB / 0.641 GB, free: 5.934 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008572/0.5286, allocations: 0.6317 MB / 0.6416 GB, free: 5.293 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5286, allocations: 0 / 0.6416 GB, free: 5.293 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001594/0.5302, allocations: 443.7 kB / 0.642 GB, free: 4.859 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01658/0.5468, allocations: 6.191 MB / 0.648 GB, free: 14.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00682/0.5536, allocations: 2.576 MB / 0.6506 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5537, allocations: 0 / 0.6506 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004411/0.5581, allocations: 1.533 MB / 0.6521 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.5595, allocations: 351 kB / 0.6524 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006026/0.5655, allocations: 6.334 MB / 0.6586 GB, free: 3.699 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006367/0.5662, allocations: 1.107 MB / 0.6597 GB, free: 2.566 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.5666, allocations: 98.48 kB / 0.6598 GB, free: 2.469 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005373/0.5671, allocations: 443.2 kB / 0.6602 GB, free: 2.035 MB / 462.1 MB Notification: Performance of SimCode: time 3.066e-06/0.5671, allocations: 0 / 0.6602 GB, free: 2.035 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04873/0.6159, allocations: 28.47 MB / 0.688 GB, free: 6.031 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.6161, allocations: 231.8 kB / 0.6882 GB, free: 5.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.431/3.047, allocations: 0 / 0.6882 GB, free: 5.797 MB / 494.1 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: