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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009944/0.0009944, allocations: 176.8 kB / 15.78 MB, free: 6.348 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.361/1.361, allocations: 223.2 MB / 239.8 MB, free: 12 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009601/0.0009601, allocations: 102.8 kB / 290.9 MB, free: 4.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5366/0.5366, allocations: 78.61 MB / 420.7 MB, free: 36.53 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003666, allocations: 16 kB / 0.4888 GB, free: 7.27 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1328, allocations: 69.36 MB / 0.5565 GB, free: 1.848 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005925/0.1388, allocations: 6.009 MB / 0.5624 GB, free: 11.81 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0039/0.1427, allocations: 1.909 MB / 0.5643 GB, free: 9.898 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009939/0.1438, allocations: 12 kB / 0.5643 GB, free: 9.887 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008428/0.1446, allocations: 170.7 kB / 0.5644 GB, free: 9.719 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.1469, allocations: 0.656 MB / 0.5651 GB, free: 9.062 MB / 442.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.001281/0.1482, allocations: 0.5212 MB / 0.5656 GB, free: 8.547 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.1501, allocations: 1.409 MB / 0.567 GB, free: 7.133 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004355/0.1505, allocations: 265.8 kB / 0.5672 GB, free: 6.859 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007056/0.1512, allocations: 0.5522 MB / 0.5677 GB, free: 6.305 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007203/0.152, allocations: 0.735 MB / 0.5685 GB, free: 5.566 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1521, allocations: 56 kB / 0.5685 GB, free: 5.512 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.1525, allocations: 183.9 kB / 0.5687 GB, free: 5.332 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.1527, allocations: 254.7 kB / 0.5689 GB, free: 5.082 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.1529, allocations: 229 kB / 0.5692 GB, free: 4.852 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.1539, allocations: 1.219 MB / 0.5703 GB, free: 3.629 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.154, allocations: 0 / 0.5703 GB, free: 3.629 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.154, allocations: 0 / 0.5703 GB, free: 3.629 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.154, allocations: 0 / 0.5703 GB, free: 3.629 MB / 442.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.008048/0.162, allocations: 2.513 MB / 0.5728 GB, free: 1.047 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1621, allocations: 8.031 kB / 0.5728 GB, free: 1.039 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004895/0.167, allocations: 0.7866 MB / 0.5736 GB, free: 256 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2791/0.4461, allocations: 0.8347 MB / 0.5744 GB, free: 44.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003266/0.4464, allocations: 267.4 kB / 0.5746 GB, free: 43.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.4466, allocations: 84.84 kB / 0.5747 GB, free: 43.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.449, allocations: 1.141 MB / 0.5758 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.449, allocations: 3.688 kB / 0.5758 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-05/0.4491, allocations: 28.97 kB / 0.5759 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.4492, allocations: 20.77 kB / 0.5759 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002152/0.4513, allocations: 1.046 MB / 0.5769 GB, free: 43.9 MB / 442.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.006861/0.4582, allocations: 3.911 MB / 0.5807 GB, free: 42.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008427/0.4666, allocations: 2.903 MB / 0.5836 GB, free: 42.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.4684, allocations: 0.7367 MB / 0.5843 GB, free: 42.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.857e-05/0.4685, allocations: 16.59 kB / 0.5843 GB, free: 42.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001789/0.4703, allocations: 0.8816 MB / 0.5852 GB, free: 42.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.837e-06/0.4703, allocations: 1.812 kB / 0.5852 GB, free: 42.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.03187/0.5022, allocations: 8.636 MB / 0.5936 GB, free: 41.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.5023, allocations: 114.2 kB / 0.5937 GB, free: 41.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/0.504, allocations: 1.075 MB / 0.5948 GB, free: 41.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.5042, allocations: 48.19 kB / 0.5948 GB, free: 41.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.5045, allocations: 492.1 kB / 0.5953 GB, free: 40.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003401/0.5049, allocations: 357.2 kB / 0.5956 GB, free: 40.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.865e-05/0.505, allocations: 30.62 kB / 0.5956 GB, free: 40.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.5051, allocations: 365.6 kB / 0.596 GB, free: 40.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.5065, allocations: 0.8193 MB / 0.5968 GB, free: 39.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.5081, allocations: 0.9944 MB / 0.5978 GB, free: 39.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.5097, allocations: 0.9541 MB / 0.5987 GB, free: 38.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.5097, allocations: 3.25 kB / 0.5987 GB, free: 38.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01413/0.5238, allocations: 5.159 MB / 0.6037 GB, free: 37.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.078e-05/0.5239, allocations: 71.02 kB / 0.6038 GB, free: 37.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.524, allocations: 2.688 kB / 0.6038 GB, free: 37.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006252/0.5302, allocations: 1.898 MB / 0.6057 GB, free: 37.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.5318, allocations: 300.7 kB / 0.6059 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02001/0.5518, allocations: 9.011 MB / 0.6147 GB, free: 33.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.5539, allocations: 237.1 kB / 0.615 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.5541, allocations: 55.22 kB / 0.615 GB, free: 33.3 MB / 442.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.0006288/0.5547, allocations: 309.3 kB / 0.6153 GB, free: 33.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.555, allocations: 129.7 kB / 0.6154 GB, free: 32.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/0.5699, allocations: 4.71 MB / 0.62 GB, free: 31.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.351e-05/0.57, allocations: 17.03 kB / 0.6201 GB, free: 31.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.57, allocations: 8.031 kB / 0.6201 GB, free: 31.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.95e-05/0.57, allocations: 4.359 kB / 0.6201 GB, free: 31.95 MB / 442.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.01785/0.5879, allocations: 6.3 MB / 0.6262 GB, free: 29.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.5879, allocations: 0 / 0.6262 GB, free: 29.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006988/0.5887, allocations: 101.8 kB / 0.6263 GB, free: 29.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006048/0.5947, allocations: 1.895 MB / 0.6282 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/0.5949, allocations: 22 kB / 0.6282 GB, free: 29.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01846/0.6134, allocations: 9.655 MB / 0.6376 GB, free: 21.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.6134, allocations: 0 / 0.6376 GB, free: 21.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/0.6289, allocations: 5.626 MB / 0.6431 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009697/0.6299, allocations: 223.3 kB / 0.6433 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.6302, allocations: 19.98 kB / 0.6433 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.6316, allocations: 149.8 kB / 0.6435 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00076/0.6323, allocations: 201.4 kB / 0.6437 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/0.6324, allocations: 24.88 kB / 0.6437 GB, free: 14.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001238/0.6337, allocations: 0.7235 MB / 0.6444 GB, free: 14.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6337, allocations: 0 / 0.6444 GB, free: 14.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001642/0.6353, allocations: 476.5 kB / 0.6449 GB, free: 13.69 MB / 442.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.0002858/0.6356, allocations: 135 kB / 0.645 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006074/0.6417, allocations: 2.786 MB / 0.6477 GB, free: 10.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6418, allocations: 0 / 0.6477 GB, free: 10.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004456/0.6462, allocations: 1.822 MB / 0.6495 GB, free: 8.883 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.6474, allocations: 109.5 kB / 0.6496 GB, free: 8.773 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.651, allocations: 2.691 MB / 0.6522 GB, free: 6.102 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.6515, allocations: 1.125 MB / 0.6533 GB, free: 4.941 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.6518, allocations: 83.41 kB / 0.6534 GB, free: 4.859 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6518, allocations: 0 / 0.6534 GB, free: 4.859 MB / 442.7 MB Notification: Performance of Templates: time 0.02895/0.6808, allocations: 23.42 MB / 0.6763 GB, free: 13.59 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (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 & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)