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/Complex 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.5 MB / 229.6 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008424/0.0008425, allocations: 97.67 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4261/0.4261, allocations: 78.07 MB / 409.3 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.636e-05, allocations: 3.938 kB / 485 MB, free: 12.16 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 69.36 MB / 0.5414 GB, free: 6.738 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3244/0.4357, allocations: 98.16 MB / 0.6372 GB, free: 1.223 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.436, allocations: 75.95 kB / 0.6373 GB, free: 1.148 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09613/0.5321, allocations: 36.03 MB / 0.6725 GB, free: 13.1 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.5322, allocations: 0 / 0.6725 GB, free: 13.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.814e-05/0.5322, allocations: 20 kB / 0.6725 GB, free: 13.08 MB / 490.7 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.004155/0.5364, allocations: 1.71 MB / 0.6742 GB, free: 11.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.5365, allocations: 12.03 kB / 0.6742 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003358/0.5398, allocations: 0.5584 MB / 0.6747 GB, free: 10.74 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.5413, allocations: 0.7879 MB / 0.6755 GB, free: 9.898 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.5415, allocations: 232.2 kB / 0.6757 GB, free: 9.637 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.5417, allocations: 52.83 kB / 0.6758 GB, free: 9.586 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00142/0.5431, allocations: 0.7967 MB / 0.6766 GB, free: 8.789 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.5446, allocations: 0.8329 MB / 0.6774 GB, free: 7.945 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.5446, allocations: 0 / 0.6774 GB, free: 7.945 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.428e-05/0.5447, allocations: 3.938 kB / 0.6774 GB, free: 7.941 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.5447, allocations: 19.94 kB / 0.6774 GB, free: 7.922 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.00625/0.551, allocations: 3.652 MB / 0.681 GB, free: 4.102 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007213/0.5582, allocations: 2.619 MB / 0.6835 GB, free: 1.387 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/0.559, allocations: 0.5139 MB / 0.684 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.5591, allocations: 16.77 kB / 0.684 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009354/0.56, allocations: 0.6488 MB / 0.6847 GB, free: 192 kB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.635e-06/0.56, allocations: 0 / 0.6847 GB, free: 192 kB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01184/0.5719, allocations: 3.926 MB / 0.6885 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.572, allocations: 115.6 kB / 0.6886 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.5731, allocations: 0.8075 MB / 0.6894 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.5732, allocations: 29.69 kB / 0.6894 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003486/0.5736, allocations: 0.5088 MB / 0.6899 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.5739, allocations: 339 kB / 0.6903 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/0.5739, allocations: 0 / 0.6903 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.5741, allocations: 345.9 kB / 0.6906 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006902/0.5748, allocations: 438.6 kB / 0.691 GB, free: 9.625 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007612/0.5755, allocations: 0.5614 MB / 0.6916 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.5763, allocations: 495.7 kB / 0.692 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.5763, allocations: 0 / 0.692 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01214/0.5885, allocations: 3.955 MB / 0.6959 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.5885, allocations: 59.41 kB / 0.6959 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5886, allocations: 4 kB / 0.6959 GB, free: 4.496 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005272/0.5938, allocations: 1.502 MB / 0.6974 GB, free: 2.992 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009287/0.5948, allocations: 187.7 kB / 0.6976 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.6079, allocations: 6.558 MB / 0.704 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.6095, allocations: 194.9 kB / 0.7042 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.6097, allocations: 35.98 kB / 0.7042 GB, free: 11.91 MB / 0.5105 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * 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.0003239/0.61, allocations: 146.3 kB / 0.7044 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01178/0.6218, allocations: 3.938 MB / 0.7082 GB, free: 7.801 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003601/0.6222, allocations: 122.5 kB / 0.7083 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/0.6339, allocations: 4.032 MB / 0.7123 GB, free: 3.621 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.634, allocations: 13.31 kB / 0.7123 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.634, allocations: 12 kB / 0.7123 GB, free: 3.598 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.299e-05/0.634, allocations: 3.984 kB / 0.7123 GB, free: 3.594 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.01351/0.6475, allocations: 5.501 MB / 0.7177 GB, free: 14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.6476, allocations: 0 / 0.7177 GB, free: 14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/0.6482, allocations: 99.89 kB / 0.7178 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004713/0.6529, allocations: 1.466 MB / 0.7192 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.653, allocations: 8 kB / 0.7192 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01325/0.6663, allocations: 7.548 MB / 0.7266 GB, free: 4.637 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.6663, allocations: 4 kB / 0.7266 GB, free: 4.633 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/0.6793, allocations: 4.773 MB / 0.7312 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004614/0.6798, allocations: 227.2 kB / 0.7314 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002741/0.6801, allocations: 5.125 kB / 0.7315 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.6814, allocations: 134.9 kB / 0.7316 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005304/0.6819, allocations: 189 kB / 0.7318 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.891e-05/0.682, allocations: 32.08 kB / 0.7318 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0008885/0.6829, allocations: 0.6135 MB / 0.7324 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6829, allocations: 0 / 0.7324 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001348/0.6843, allocations: 395.5 kB / 0.7328 GB, free: 14.22 MB / 0.5417 GB 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 () * 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 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01311/0.6974, allocations: 5.431 MB / 0.7381 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004698/0.7021, allocations: 1.995 MB / 0.74 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.7021, allocations: 0 / 0.74 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003721/0.7059, allocations: 1.53 MB / 0.7415 GB, free: 5.16 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007579/0.7066, allocations: 89.95 kB / 0.7416 GB, free: 5.074 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003677/0.7103, allocations: 1.86 MB / 0.7434 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.711, allocations: 1.151 MB / 0.7445 GB, free: 1.996 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004053/0.7114, allocations: 94.67 kB / 0.7446 GB, free: 1.898 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005809/0.712, allocations: 467.2 kB / 0.7451 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of SimCode: time 7.11e-07/0.712, allocations: 0.9375 kB / 0.7451 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.279/0.991, allocations: 28.66 MB / 0.7731 GB, free: 147.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/0.9912, allocations: 170.9 kB / 0.7732 GB, free: 147.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/3.808, allocations: 0.9375 kB / 0.7732 GB, free: 147.3 MB / 0.5573 GB (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)