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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009547/0.009547, allocations: 107.9 kB / 15.74 MB, free: 5.578 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.407/1.407, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001614/0.001614, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5217/0.5217, allocations: 78.54 MB / 418.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 79.81 kB / 0.5532 GB, free: 1.438 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.469/0.4708, allocations: 68.17 MB / 0.6197 GB, free: 9.391 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.01129/0.4821, allocations: 6.563 MB / 0.6261 GB, free: 3.582 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007003/0.4892, allocations: 1.958 MB / 0.6281 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.491, allocations: 12 kB / 0.6281 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.4927, allocations: 237.9 kB / 0.6283 GB, free: 1.371 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.4975, allocations: 0.8612 MB / 0.6291 GB, free: 0.5156 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.002717/0.5003, allocations: 0.6291 MB / 0.6298 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003913/0.5042, allocations: 1.588 MB / 0.6313 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.5054, allocations: 328.7 kB / 0.6316 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.5074, allocations: 0.6613 MB / 0.6323 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002107/0.5095, allocations: 0.8206 MB / 0.6331 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006376/0.5102, allocations: 120 kB / 0.6332 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.5115, allocations: 259.9 kB / 0.6334 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007691/0.5123, allocations: 334.6 kB / 0.6337 GB, free: 11.78 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.514, allocations: 0.6641 MB / 0.6344 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00404/0.518, allocations: 1.662 MB / 0.636 GB, free: 9.441 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.5181, allocations: 0 / 0.636 GB, free: 9.441 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5181, allocations: 4 kB / 0.636 GB, free: 9.438 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.958e-05/0.5182, allocations: 0 / 0.636 GB, free: 9.438 MB / 446.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.01789/0.5361, allocations: 2.68 MB / 0.6386 GB, free: 6.688 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.178e-05/0.5362, allocations: 16.03 kB / 0.6387 GB, free: 6.672 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004756/0.5367, allocations: 126.6 kB / 0.6388 GB, free: 6.539 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01146/0.5482, allocations: 0.7787 MB / 0.6395 GB, free: 5.758 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003915/0.5521, allocations: 0.8786 MB / 0.6404 GB, free: 4.824 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005929/0.5528, allocations: 260.2 kB / 0.6406 GB, free: 4.531 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005413/0.5534, allocations: 87.91 kB / 0.6407 GB, free: 4.445 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004703/0.5581, allocations: 1.086 MB / 0.6418 GB, free: 3.348 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/0.5582, allocations: 3.938 kB / 0.6418 GB, free: 3.344 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.5585, allocations: 32 kB / 0.6418 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/0.5585, allocations: 23.94 kB / 0.6418 GB, free: 3.289 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004149/0.5627, allocations: 0.9838 MB / 0.6428 GB, free: 2.305 MB / 446.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.01349/0.5762, allocations: 3.789 MB / 0.6465 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/0.5899, allocations: 2.379 MB / 0.6488 GB, free: 11.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/0.5921, allocations: 0.6827 MB / 0.6495 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/0.5924, allocations: 20.98 kB / 0.6495 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002361/0.5948, allocations: 0.8294 MB / 0.6503 GB, free: 10.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 4.348e-06/0.5948, allocations: 0 / 0.6503 GB, free: 10.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02849/0.6233, allocations: 7.077 MB / 0.6572 GB, free: 3.172 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.6235, allocations: 119.7 kB / 0.6573 GB, free: 3.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.6256, allocations: 1.087 MB / 0.6584 GB, free: 1.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002849/0.6259, allocations: 45.7 kB / 0.6585 GB, free: 1.879 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/0.6264, allocations: 492.8 kB / 0.6589 GB, free: 1.391 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005722/0.627, allocations: 358.8 kB / 0.6593 GB, free: 1.035 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007885/0.6278, allocations: 295.4 kB / 0.6595 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6279, allocations: 301.1 kB / 0.6598 GB, free: 456 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.6296, allocations: 0.7652 MB / 0.6606 GB, free: 15.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.6315, allocations: 0.9343 MB / 0.6615 GB, free: 14.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02342/0.6549, allocations: 5.575 MB / 0.6669 GB, free: 9.043 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.655, allocations: 0 / 0.6669 GB, free: 9.043 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01365/0.6686, allocations: 4.332 MB / 0.6712 GB, free: 4.684 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.849e-05/0.6688, allocations: 59.41 kB / 0.6712 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.6688, allocations: 0 / 0.6712 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005331/0.6741, allocations: 1.524 MB / 0.6727 GB, free: 3.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.6757, allocations: 299.6 kB / 0.673 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/0.6949, allocations: 8.256 MB / 0.6811 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.6969, allocations: 194.8 kB / 0.6812 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003194/0.6972, allocations: 59.97 kB / 0.6813 GB, free: 10.13 MB / 494.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.0009348/0.6982, allocations: 308.2 kB / 0.6816 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.6986, allocations: 130.3 kB / 0.6817 GB, free: 9.684 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01223/0.7109, allocations: 3.873 MB / 0.6855 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.243e-05/0.7109, allocations: 12 kB / 0.6855 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-05/0.711, allocations: 12 kB / 0.6855 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.483e-05/0.711, allocations: 3.984 kB / 0.6855 GB, free: 5.746 MB / 494.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.01514/0.7261, allocations: 5.456 MB / 0.6909 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.7262, allocations: 0 / 0.6909 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00069/0.7269, allocations: 103.8 kB / 0.691 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005431/0.7324, allocations: 1.606 MB / 0.6925 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/0.7327, allocations: 20 kB / 0.6925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/0.7534, allocations: 9.611 MB / 0.7019 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.7535, allocations: 0 / 0.7019 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/0.7677, allocations: 4.735 MB / 0.7066 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005891/0.7684, allocations: 223.2 kB / 0.7068 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004384/0.7688, allocations: 23.98 kB / 0.7068 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.7702, allocations: 111.9 kB / 0.7069 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007229/0.7709, allocations: 192.7 kB / 0.7071 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.7711, allocations: 24 kB / 0.7071 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001353/0.7725, allocations: 0.7235 MB / 0.7078 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.7725, allocations: 0 / 0.7078 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001833/0.7743, allocations: 479.5 kB / 0.7083 GB, free: 14 MB / 0.5137 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 () * 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.01429/0.7886, allocations: 5.333 MB / 0.7135 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006608/0.7953, allocations: 2.505 MB / 0.7159 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.7953, allocations: 0 / 0.7159 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004291/0.7996, allocations: 1.611 MB / 0.7175 GB, free: 4.422 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.8011, allocations: 110.3 kB / 0.7176 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04004/0.8411, allocations: 16 MB / 0.7332 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009737/0.8422, allocations: 1.12 MB / 0.7343 GB, free: 2.938 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006685/0.8429, allocations: 124 kB / 0.7344 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.8437, allocations: 471.3 kB / 0.7349 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/0.8437, allocations: 0 / 0.7349 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0772/0.9209, allocations: 34.23 MB / 0.7683 GB, free: 328 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/15.19, allocations: 22.12 kB / 0.7683 GB, free: 312 kB / 0.5606 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/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)