Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.005517/0.005517, allocations: 171.2 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.545/1.545, allocations: 223.3 MB / 239.1 MB, free: 1.742 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.0008278/0.0008279, allocations: 90.06 kB / 290.3 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4644/0.4644, allocations: 78.62 MB / 420 MB, free: 44.12 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003927, allocations: 8 kB / 500 MB, free: 2.844 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4088, allocations: 69.35 MB / 0.556 GB, free: 38.3 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006391/0.4153, allocations: 6.003 MB / 0.5618 GB, free: 37.3 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004531/0.4199, allocations: 1.898 MB / 0.5637 GB, free: 35.95 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.4212, allocations: 10.91 kB / 0.5637 GB, free: 35.95 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007901/0.422, allocations: 175.1 kB / 0.5639 GB, free: 35.88 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002371/0.4244, allocations: 0.662 MB / 0.5645 GB, free: 35.45 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.001448/0.4258, allocations: 0.5249 MB / 0.565 GB, free: 35.19 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002478/0.4283, allocations: 1.409 MB / 0.5664 GB, free: 34.48 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005763/0.4289, allocations: 263.4 kB / 0.5667 GB, free: 34.37 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.43, allocations: 0.5568 MB / 0.5672 GB, free: 34.13 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008699/0.4309, allocations: 0.7282 MB / 0.5679 GB, free: 33.82 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.4311, allocations: 63.38 kB / 0.568 GB, free: 33.82 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000549/0.4316, allocations: 184.1 kB / 0.5682 GB, free: 33.78 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.4319, allocations: 252 kB / 0.5684 GB, free: 33.64 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.4321, allocations: 226.6 kB / 0.5686 GB, free: 33.49 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009702/0.4331, allocations: 1.23 MB / 0.5698 GB, free: 33.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4331, allocations: 0 / 0.5698 GB, free: 33.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4331, allocations: 0 / 0.5698 GB, free: 33.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.4331, allocations: 3.938 kB / 0.5698 GB, free: 33.12 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.007858/0.441, allocations: 2.504 MB / 0.5723 GB, free: 32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.4411, allocations: 8.062 kB / 0.5723 GB, free: 32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001999/0.4413, allocations: 134.3 kB / 0.5724 GB, free: 31.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004734/0.446, allocations: 0.7803 MB / 0.5732 GB, free: 31.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.4476, allocations: 0.8477 MB / 0.574 GB, free: 31.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002512/0.4479, allocations: 265.3 kB / 0.5742 GB, free: 30.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.448, allocations: 84.03 kB / 0.5743 GB, free: 30.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.4502, allocations: 1.14 MB / 0.5754 GB, free: 30.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.4502, allocations: 0 / 0.5754 GB, free: 30.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.823e-05/0.4503, allocations: 29.31 kB / 0.5755 GB, free: 30.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.4503, allocations: 23.3 kB / 0.5755 GB, free: 30.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.4522, allocations: 1.053 MB / 0.5765 GB, free: 30.16 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.006308/0.4586, allocations: 3.901 MB / 0.5803 GB, free: 27.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007561/0.4661, allocations: 2.914 MB / 0.5832 GB, free: 27.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.4677, allocations: 0.7346 MB / 0.5839 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.369e-05/0.4678, allocations: 22.67 kB / 0.5839 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/0.4693, allocations: 0.8747 MB / 0.5848 GB, free: 26.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 4.198e-06/0.4693, allocations: 0 / 0.5848 GB, free: 26.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02896/0.4983, allocations: 8.642 MB / 0.5932 GB, free: 24.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.4984, allocations: 117 kB / 0.5933 GB, free: 24.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.5, allocations: 1.071 MB / 0.5944 GB, free: 24.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002302/0.5002, allocations: 41.77 kB / 0.5944 GB, free: 24.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.5006, allocations: 498.5 kB / 0.5949 GB, free: 23.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.5009, allocations: 352.4 kB / 0.5952 GB, free: 23.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.199e-05/0.501, allocations: 31.06 kB / 0.5952 GB, free: 23.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.927e-05/0.5011, allocations: 365.4 kB / 0.5956 GB, free: 23.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.5028, allocations: 0.8258 MB / 0.5964 GB, free: 22.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.5045, allocations: 0.9967 MB / 0.5974 GB, free: 22.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.5062, allocations: 0.966 MB / 0.5983 GB, free: 22.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.5063, allocations: 1.312 kB / 0.5983 GB, free: 22.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01591/0.5222, allocations: 5.151 MB / 0.6033 GB, free: 20.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.463e-05/0.5223, allocations: 59.73 kB / 0.6034 GB, free: 20.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.5223, allocations: 3.672 kB / 0.6034 GB, free: 20.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006832/0.5291, allocations: 1.904 MB / 0.6053 GB, free: 20.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.5308, allocations: 294.8 kB / 0.6055 GB, free: 20.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/0.5508, allocations: 9.025 MB / 0.6144 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.553, allocations: 234.7 kB / 0.6146 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.5532, allocations: 56.14 kB / 0.6146 GB, free: 13.61 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.000592/0.5538, allocations: 304.3 kB / 0.6149 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.554, allocations: 130.4 kB / 0.615 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/0.5672, allocations: 4.701 MB / 0.6196 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.5673, allocations: 16 kB / 0.6197 GB, free: 8.414 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.5673, allocations: 7.953 kB / 0.6197 GB, free: 8.406 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/0.5674, allocations: 11.97 kB / 0.6197 GB, free: 8.395 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.01632/0.5837, allocations: 6.29 MB / 0.6258 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.5837, allocations: 4.031 kB / 0.6258 GB, free: 1.992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006418/0.5844, allocations: 103.8 kB / 0.6259 GB, free: 1.891 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005514/0.5899, allocations: 1.887 MB / 0.6278 GB, free: 15.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000238/0.5902, allocations: 19.94 kB / 0.6278 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02002/0.6102, allocations: 9.648 MB / 0.6372 GB, free: 6.043 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.6103, allocations: 240 / 0.6372 GB, free: 6.043 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/0.6261, allocations: 5.639 MB / 0.6427 GB, free: 380 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005087/0.6266, allocations: 227.2 kB / 0.6429 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.6269, allocations: 23.95 kB / 0.643 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.6282, allocations: 147.9 kB / 0.6431 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005507/0.6287, allocations: 188.7 kB / 0.6433 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-05/0.6288, allocations: 31.98 kB / 0.6433 GB, free: 15.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001078/0.6299, allocations: 0.7196 MB / 0.644 GB, free: 15.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6299, allocations: 0 / 0.644 GB, free: 15.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00153/0.6315, allocations: 471.5 kB / 0.6445 GB, free: 14.55 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.01615/0.6476, allocations: 6.221 MB / 0.6505 GB, free: 8.289 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006868/0.6545, allocations: 2.795 MB / 0.6533 GB, free: 5.461 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.6546, allocations: 0 / 0.6533 GB, free: 5.461 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004749/0.6593, allocations: 1.823 MB / 0.655 GB, free: 3.598 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.6606, allocations: 108.6 kB / 0.6551 GB, free: 3.488 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/0.6876, allocations: 12.03 MB / 0.6669 GB, free: 7.102 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006485/0.6883, allocations: 1.124 MB / 0.668 GB, free: 5.949 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.6889, allocations: 116.1 kB / 0.6681 GB, free: 5.832 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006196/0.6895, allocations: 471.3 kB / 0.6686 GB, free: 5.371 MB / 474.7 MB Notification: Performance of SimCode: time 4.81e-07/0.6895, allocations: 0 / 0.6686 GB, free: 5.371 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05655/0.7461, allocations: 32.02 MB / 0.6998 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.7463, allocations: 239.9 kB / 0.7 GB, free: 5.348 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.164/3.91, allocations: 0 / 0.7 GB, free: 5.348 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)