Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_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.001123/0.001123, allocations: 95.86 kB / 15.05 MB, free: 1.113 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.298/1.298, allocations: 223.2 MB / 238.9 MB, free: 5.637 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.001321/0.00132, allocations: 177.1 kB / 290.2 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4364/0.4364, allocations: 78.54 MB / 419.8 MB, free: 4.359 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.0003601, allocations: 12 kB / 499.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1283, allocations: 69.36 MB / 0.5558 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2357/0.364, allocations: 5.729 MB / 0.5614 GB, free: 37.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004304/0.3684, allocations: 1.942 MB / 0.5633 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001868/0.3703, allocations: 17.5 kB / 0.5633 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.3716, allocations: 169.2 kB / 0.5634 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003168/0.3748, allocations: 0.7165 MB / 0.5641 GB, free: 37 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3761, allocations: 0.5161 MB / 0.5646 GB, free: 36.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.3779, allocations: 0.9977 MB / 0.5656 GB, free: 36.92 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004424/0.3783, allocations: 264.8 kB / 0.5659 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008198/0.3792, allocations: 0.5607 MB / 0.5664 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007186/0.3799, allocations: 0.716 MB / 0.5671 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.38, allocations: 59.53 kB / 0.5672 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.3805, allocations: 169.2 kB / 0.5673 GB, free: 36.53 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.3807, allocations: 253.9 kB / 0.5676 GB, free: 36.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.3809, allocations: 224.6 kB / 0.5678 GB, free: 36.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008966/0.3818, allocations: 1.185 MB / 0.5689 GB, free: 36.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.3818, allocations: 3.938 kB / 0.569 GB, free: 36.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3818, allocations: 1.469 kB / 0.569 GB, free: 36.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.3818, allocations: 0 / 0.569 GB, free: 36.2 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.007627/0.3894, allocations: 2.508 MB / 0.5714 GB, free: 35.26 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3895, allocations: 11.53 kB / 0.5714 GB, free: 35.26 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002286/0.3897, allocations: 125.7 kB / 0.5715 GB, free: 35.22 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004885/0.3946, allocations: 0.7839 MB / 0.5723 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.3962, allocations: 0.845 MB / 0.5731 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/0.3964, allocations: 266.7 kB / 0.5734 GB, free: 34.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.3966, allocations: 85.62 kB / 0.5735 GB, free: 34.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.3985, allocations: 1.138 MB / 0.5746 GB, free: 34.19 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.3986, allocations: 0.6562 kB / 0.5746 GB, free: 34.19 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-05/0.3987, allocations: 32 kB / 0.5746 GB, free: 34.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.3987, allocations: 23.8 kB / 0.5746 GB, free: 34.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.4005, allocations: 1.044 MB / 0.5756 GB, free: 33.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.00568/0.4062, allocations: 4.107 MB / 0.5797 GB, free: 31.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007277/0.4135, allocations: 2.915 MB / 0.5825 GB, free: 30.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.4137, allocations: 18.22 kB / 0.5825 GB, free: 30.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001747/0.4154, allocations: 0.869 MB / 0.5834 GB, free: 30.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.166e-06/0.4154, allocations: 0 / 0.5834 GB, free: 30.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03132/0.4468, allocations: 8.638 MB / 0.5918 GB, free: 28.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.4469, allocations: 114 kB / 0.5919 GB, free: 28.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.4486, allocations: 1.074 MB / 0.593 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002355/0.4489, allocations: 45.64 kB / 0.593 GB, free: 27.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.4492, allocations: 494.4 kB / 0.5935 GB, free: 27.58 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003287/0.4495, allocations: 352.4 kB / 0.5938 GB, free: 27.31 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/0.4496, allocations: 31.59 kB / 0.5938 GB, free: 27.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.4497, allocations: 361 kB / 0.5942 GB, free: 26.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.4513, allocations: 0.8218 MB / 0.595 GB, free: 26.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.453, allocations: 0.9937 MB / 0.596 GB, free: 26.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.4548, allocations: 0.9548 MB / 0.5969 GB, free: 25.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.4548, allocations: 5.359 kB / 0.5969 GB, free: 25.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0146/0.4694, allocations: 5.157 MB / 0.6019 GB, free: 24.51 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/0.4695, allocations: 61.44 kB / 0.602 GB, free: 24.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.4695, allocations: 4.641 kB / 0.602 GB, free: 24.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00686/0.4764, allocations: 1.901 MB / 0.6039 GB, free: 24.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.478, allocations: 298.5 kB / 0.6041 GB, free: 24.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0206/0.4986, allocations: 9.452 MB / 0.6134 GB, free: 18.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.5005, allocations: 234.7 kB / 0.6136 GB, free: 18.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.5007, allocations: 55.97 kB / 0.6136 GB, free: 18.48 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.0005071/0.5012, allocations: 305.7 kB / 0.6139 GB, free: 18.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.5014, allocations: 126.4 kB / 0.6141 GB, free: 18.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/0.5135, allocations: 4.709 MB / 0.6187 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.5135, allocations: 12 kB / 0.6187 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.5135, allocations: 9.438 kB / 0.6187 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.848e-05/0.5136, allocations: 11.94 kB / 0.6187 GB, free: 13.27 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.01386/0.5275, allocations: 6.336 MB / 0.6249 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/0.5275, allocations: 4.984 kB / 0.6249 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006231/0.5281, allocations: 99.84 kB / 0.625 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005291/0.5334, allocations: 1.889 MB / 0.6268 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.5336, allocations: 27.98 kB / 0.6268 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/0.5531, allocations: 10.08 MB / 0.6367 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.5531, allocations: 11.95 kB / 0.6367 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/0.5684, allocations: 5.65 MB / 0.6422 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/0.569, allocations: 236.6 kB / 0.6424 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.5691, allocations: 17.25 kB / 0.6425 GB, free: 4.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5703, allocations: 143.9 kB / 0.6426 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005551/0.5709, allocations: 193.4 kB / 0.6428 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-05/0.571, allocations: 27.98 kB / 0.6428 GB, free: 4.109 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.572, allocations: 0.7196 MB / 0.6435 GB, free: 3.383 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.572, allocations: 0 / 0.6435 GB, free: 3.383 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001488/0.5735, allocations: 479.5 kB / 0.644 GB, free: 2.914 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 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0156/0.5891, allocations: 6.296 MB / 0.6501 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006551/0.5957, allocations: 2.779 MB / 0.6528 GB, free: 9.754 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.5958, allocations: 0.75 kB / 0.6528 GB, free: 9.754 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00449/0.6003, allocations: 1.827 MB / 0.6546 GB, free: 7.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008238/0.6011, allocations: 95.56 kB / 0.6547 GB, free: 7.797 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.6062, allocations: 5.036 MB / 0.6596 GB, free: 2.699 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006042/0.6068, allocations: 1.143 MB / 0.6607 GB, free: 1.527 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004148/0.6072, allocations: 123.2 kB / 0.6609 GB, free: 1.406 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005667/0.6078, allocations: 463.3 kB / 0.6613 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6078, allocations: 0 / 0.6613 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05019/0.658, allocations: 31.18 MB / 0.6917 GB, free: 2.223 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/0.6582, allocations: 237.5 kB / 0.692 GB, free: 1.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.298, allocations: 0 / 0.692 GB, free: 1.98 MB / 494.1 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: