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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_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_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.44/1.44, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.001499/0.0015, allocations: 168.5 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4988/0.4988, allocations: 78.55 MB / 420.3 MB, free: 4.242 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004093, allocations: 8 kB / 0.4887 GB, free: 6.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1514, allocations: 69.37 MB / 0.5564 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2744/0.4259, allocations: 6.392 MB / 0.5626 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005122/0.431, allocations: 1.995 MB / 0.5646 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.4327, allocations: 13.19 kB / 0.5646 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.4339, allocations: 186.8 kB / 0.5648 GB, free: 35.18 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.437, allocations: 0.6992 MB / 0.5655 GB, free: 34.88 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.001583/0.4386, allocations: 0.5825 MB / 0.566 GB, free: 34.79 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.4408, allocations: 1.499 MB / 0.5675 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004663/0.4413, allocations: 278.9 kB / 0.5678 GB, free: 34.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007702/0.442, allocations: 0.5663 MB / 0.5683 GB, free: 34.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007191/0.4428, allocations: 0.7513 MB / 0.5691 GB, free: 34.01 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.4429, allocations: 61.22 kB / 0.5691 GB, free: 34.01 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.4434, allocations: 192.2 kB / 0.5693 GB, free: 34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.4436, allocations: 256.5 kB / 0.5695 GB, free: 33.92 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.444, allocations: 0.6237 MB / 0.5702 GB, free: 33.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.4452, allocations: 1.552 MB / 0.5717 GB, free: 33.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4452, allocations: 0 / 0.5717 GB, free: 33.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4453, allocations: 2.75 kB / 0.5717 GB, free: 33.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.4453, allocations: 0 / 0.5717 GB, free: 33.27 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.007748/0.453, allocations: 2.503 MB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4531, allocations: 9.344 kB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004872/0.458, allocations: 0.7757 MB / 0.5749 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.4594, allocations: 0.8861 MB / 0.5757 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/0.4597, allocations: 270.7 kB / 0.576 GB, free: 31.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.4599, allocations: 86.44 kB / 0.5761 GB, free: 31.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002009/0.4619, allocations: 1.151 MB / 0.5772 GB, free: 31.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.4619, allocations: 3.5 kB / 0.5772 GB, free: 31.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.462, allocations: 27.47 kB / 0.5772 GB, free: 31.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.462, allocations: 21.94 kB / 0.5773 GB, free: 31.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001995/0.464, allocations: 1.046 MB / 0.5783 GB, free: 31.5 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.006025/0.4701, allocations: 3.912 MB / 0.5821 GB, free: 30.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007954/0.478, allocations: 2.908 MB / 0.5849 GB, free: 29.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.4799, allocations: 0.7453 MB / 0.5857 GB, free: 28.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.48, allocations: 18.55 kB / 0.5857 GB, free: 28.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001886/0.4819, allocations: 0.8784 MB / 0.5865 GB, free: 28.65 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.755e-06/0.482, allocations: 0 / 0.5865 GB, free: 28.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03306/0.515, allocations: 8.672 MB / 0.595 GB, free: 27.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.5151, allocations: 118.6 kB / 0.5951 GB, free: 26.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.5172, allocations: 1.082 MB / 0.5962 GB, free: 26.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003135/0.5175, allocations: 46.58 kB / 0.5962 GB, free: 26.45 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003839/0.5179, allocations: 490.9 kB / 0.5967 GB, free: 26.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004118/0.5183, allocations: 360.8 kB / 0.597 GB, free: 25.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.5186, allocations: 145.7 kB / 0.5972 GB, free: 25.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.449e-05/0.5186, allocations: 305.2 kB / 0.5975 GB, free: 25.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.5205, allocations: 0.8276 MB / 0.5983 GB, free: 25.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.5223, allocations: 1.001 MB / 0.5993 GB, free: 24.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02466/0.547, allocations: 6.009 MB / 0.6051 GB, free: 22.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.547, allocations: 4.969 kB / 0.6051 GB, free: 22.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01533/0.5624, allocations: 5.168 MB / 0.6102 GB, free: 21.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.5625, allocations: 60.02 kB / 0.6102 GB, free: 21.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.5625, allocations: 3.672 kB / 0.6102 GB, free: 21.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005879/0.5684, allocations: 1.796 MB / 0.612 GB, free: 20.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.5701, allocations: 291.6 kB / 0.6123 GB, free: 20.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01827/0.5884, allocations: 8.613 MB / 0.6207 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/0.5908, allocations: 238.8 kB / 0.6209 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.591, allocations: 60.47 kB / 0.621 GB, free: 11.27 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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007635/0.5918, allocations: 300.9 kB / 0.6213 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.592, allocations: 126.4 kB / 0.6214 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/0.6048, allocations: 4.717 MB / 0.626 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.6049, allocations: 12 kB / 0.626 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.6049, allocations: 7.938 kB / 0.626 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-05/0.6049, allocations: 7.984 kB / 0.626 GB, free: 6.066 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.01473/0.6197, allocations: 6.307 MB / 0.6322 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.6197, allocations: 0 / 0.6322 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006629/0.6204, allocations: 95.89 kB / 0.6323 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006134/0.6266, allocations: 1.905 MB / 0.6341 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/0.6268, allocations: 20 kB / 0.6341 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0203/0.6471, allocations: 9.658 MB / 0.6436 GB, free: 3.691 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6472, allocations: 0 / 0.6436 GB, free: 3.691 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01619/0.6633, allocations: 5.643 MB / 0.6491 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.6641, allocations: 229.2 kB / 0.6493 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002528/0.6643, allocations: 21.12 kB / 0.6493 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.6656, allocations: 147.9 kB / 0.6495 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006269/0.6662, allocations: 192.7 kB / 0.6496 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.533e-05/0.6663, allocations: 28 kB / 0.6497 GB, free: 13.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.6674, allocations: 0.7274 MB / 0.6504 GB, free: 12.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6674, allocations: 0 / 0.6504 GB, free: 12.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001609/0.669, allocations: 475.5 kB / 0.6508 GB, free: 12.19 MB / 462.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003011/0.6694, allocations: 139.1 kB / 0.651 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006701/0.6761, allocations: 2.784 MB / 0.6537 GB, free: 9.223 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.6761, allocations: 128 / 0.6537 GB, free: 9.223 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004812/0.6809, allocations: 1.82 MB / 0.6555 GB, free: 7.371 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.6822, allocations: 114.3 kB / 0.6556 GB, free: 7.258 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004035/0.6863, allocations: 2.783 MB / 0.6583 GB, free: 4.492 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006304/0.687, allocations: 1.124 MB / 0.6594 GB, free: 3.336 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005275/0.6875, allocations: 120 kB / 0.6595 GB, free: 3.219 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.6878, allocations: 79.41 kB / 0.6596 GB, free: 3.141 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.6878, allocations: 0 / 0.6596 GB, free: 3.141 MB / 462.1 MB Notification: Performance of Templates: time 0.03443/0.7222, allocations: 20.99 MB / 0.6801 GB, free: 14.36 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile Environment - environmentSimulation: (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 & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: