Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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.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 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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_release_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.008012/0.008012, allocations: 168.3 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.3 MB / 239.1 MB, free: 1.711 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.0008826/0.0008825, allocations: 101.2 kB / 290.3 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4433/0.4433, allocations: 78.62 MB / 420 MB, free: 44.2 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003555, allocations: 15.98 kB / 500 MB, free: 2.82 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3467, allocations: 69.34 MB / 0.556 GB, free: 38.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005411/0.3521, allocations: 6.009 MB / 0.5619 GB, free: 37.38 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.3556, allocations: 1.903 MB / 0.5637 GB, free: 36.03 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005876/0.3562, allocations: 15.91 kB / 0.5637 GB, free: 36.03 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000558/0.3568, allocations: 164.6 kB / 0.5639 GB, free: 35.96 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.3584, allocations: 0.6573 MB / 0.5645 GB, free: 35.53 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001149/0.3595, allocations: 0.5372 MB / 0.565 GB, free: 35.27 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.3611, allocations: 1.408 MB / 0.5664 GB, free: 34.55 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/0.3615, allocations: 266 kB / 0.5667 GB, free: 34.44 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007658/0.3623, allocations: 0.5559 MB / 0.5672 GB, free: 34.2 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006819/0.363, allocations: 0.72 MB / 0.5679 GB, free: 33.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.3632, allocations: 59 kB / 0.568 GB, free: 33.89 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000442/0.3636, allocations: 191.7 kB / 0.5682 GB, free: 33.85 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.3638, allocations: 249.4 kB / 0.5684 GB, free: 33.71 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.364, allocations: 231.1 kB / 0.5686 GB, free: 33.57 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008241/0.3648, allocations: 1.227 MB / 0.5698 GB, free: 33.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3648, allocations: 4.969 kB / 0.5698 GB, free: 33.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3648, allocations: 0 / 0.5698 GB, free: 33.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3648, allocations: 0 / 0.5698 GB, free: 33.2 MB / 426.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.00739/0.3722, allocations: 2.506 MB / 0.5723 GB, free: 32.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3723, allocations: 7.031 kB / 0.5723 GB, free: 32.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.3724, allocations: 125.6 kB / 0.5724 GB, free: 31.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004518/0.377, allocations: 0.7862 MB / 0.5732 GB, free: 31.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.3783, allocations: 0.8456 MB / 0.574 GB, free: 31.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.3785, allocations: 265.3 kB / 0.5742 GB, free: 31.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.3787, allocations: 82.62 kB / 0.5743 GB, free: 31.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.3807, allocations: 1.145 MB / 0.5754 GB, free: 30.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3808, allocations: 0 / 0.5754 GB, free: 30.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.155e-05/0.3809, allocations: 25.91 kB / 0.5755 GB, free: 30.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.3809, allocations: 21.86 kB / 0.5755 GB, free: 30.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.3828, allocations: 1.052 MB / 0.5765 GB, free: 30.24 MB / 426.7 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.006222/0.389, allocations: 3.904 MB / 0.5803 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00755/0.3966, allocations: 2.923 MB / 0.5832 GB, free: 27.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.398, allocations: 0.7381 MB / 0.5839 GB, free: 26.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.699e-05/0.3981, allocations: 14.73 kB / 0.5839 GB, free: 26.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001456/0.3996, allocations: 0.8806 MB / 0.5848 GB, free: 26.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.605e-06/0.3996, allocations: 0 / 0.5848 GB, free: 26.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02997/0.4296, allocations: 8.635 MB / 0.5932 GB, free: 24.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.4297, allocations: 114 kB / 0.5933 GB, free: 24.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.4312, allocations: 1.072 MB / 0.5944 GB, free: 24.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.4314, allocations: 46.7 kB / 0.5944 GB, free: 24.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.4317, allocations: 497.2 kB / 0.5949 GB, free: 23.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002987/0.432, allocations: 353.3 kB / 0.5952 GB, free: 23.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.332e-05/0.4321, allocations: 34.03 kB / 0.5953 GB, free: 23.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.972e-05/0.4322, allocations: 365.9 kB / 0.5956 GB, free: 23.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.4338, allocations: 0.8214 MB / 0.5964 GB, free: 23.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.4355, allocations: 0.9957 MB / 0.5974 GB, free: 22.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.4372, allocations: 0.9577 MB / 0.5983 GB, free: 22.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.4372, allocations: 5.156 kB / 0.5983 GB, free: 22.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01525/0.4525, allocations: 5.154 MB / 0.6033 GB, free: 20.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.395e-05/0.4526, allocations: 63.55 kB / 0.6034 GB, free: 20.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.4526, allocations: 4.156 kB / 0.6034 GB, free: 20.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006829/0.4595, allocations: 1.901 MB / 0.6053 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4611, allocations: 298.2 kB / 0.6056 GB, free: 20.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01975/0.4808, allocations: 9.021 MB / 0.6144 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.4828, allocations: 234.7 kB / 0.6146 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.483, allocations: 56.14 kB / 0.6146 GB, free: 13.6 MB / 426.7 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.0005426/0.4835, allocations: 304.3 kB / 0.6149 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.4837, allocations: 130.3 kB / 0.6151 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.4968, allocations: 4.709 MB / 0.6197 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.4968, allocations: 8 kB / 0.6197 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.4968, allocations: 15.95 kB / 0.6197 GB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4968, allocations: 3.984 kB / 0.6197 GB, free: 8.391 MB / 426.7 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.01438/0.5112, allocations: 6.286 MB / 0.6258 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.5112, allocations: 4 kB / 0.6258 GB, free: 1.992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/0.5118, allocations: 107.9 kB / 0.6259 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005581/0.5174, allocations: 1.883 MB / 0.6278 GB, free: 15.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.5176, allocations: 24 kB / 0.6278 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02024/0.5378, allocations: 9.648 MB / 0.6372 GB, free: 6.039 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5378, allocations: 4 kB / 0.6372 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01582/0.5537, allocations: 5.635 MB / 0.6427 GB, free: 376 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004702/0.5542, allocations: 231.2 kB / 0.6429 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.5543, allocations: 23.95 kB / 0.643 GB, free: 100 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.5556, allocations: 144.1 kB / 0.6431 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005119/0.5561, allocations: 196.6 kB / 0.6433 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/0.5562, allocations: 27.94 kB / 0.6433 GB, free: 15.73 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001048/0.5572, allocations: 0.7196 MB / 0.644 GB, free: 15.01 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5573, allocations: 0 / 0.644 GB, free: 15.01 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00131/0.5586, allocations: 479.5 kB / 0.6445 GB, free: 14.54 MB / 458.7 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.01601/0.5746, allocations: 6.212 MB / 0.6505 GB, free: 8.281 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006628/0.5812, allocations: 2.791 MB / 0.6533 GB, free: 5.457 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.5813, allocations: 0 / 0.6533 GB, free: 5.457 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004618/0.5859, allocations: 1.823 MB / 0.655 GB, free: 3.594 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.587, allocations: 115.4 kB / 0.6552 GB, free: 3.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/0.6129, allocations: 12.04 MB / 0.6669 GB, free: 7.09 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005953/0.6136, allocations: 1.12 MB / 0.668 GB, free: 5.941 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005022/0.6141, allocations: 124 kB / 0.6681 GB, free: 5.816 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005936/0.6147, allocations: 471.3 kB / 0.6686 GB, free: 5.355 MB / 474.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6147, allocations: 0 / 0.6686 GB, free: 5.355 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05266/0.6674, allocations: 32.02 MB / 0.6998 GB, free: 5.605 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.6676, allocations: 253.4 kB / 0.7001 GB, free: 5.273 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.923/3.591, allocations: 0 / 0.7001 GB, free: 5.273 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)