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.004897/0.004897, allocations: 101.5 kB / 15.73 MB, free: 6.023 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.359/1.359, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001316/0.001316, allocations: 192.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4469/0.4469, allocations: 78.52 MB / 418.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 79.88 kB / 0.5532 GB, free: 1.453 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2988, allocations: 68.17 MB / 0.6197 GB, free: 9.441 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005407/0.3043, allocations: 6.563 MB / 0.6261 GB, free: 3.57 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003268/0.3076, allocations: 1.966 MB / 0.6281 GB, free: 1.598 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000786/0.3084, allocations: 12 kB / 0.6281 GB, free: 1.586 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006954/0.3091, allocations: 238 kB / 0.6283 GB, free: 1.352 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.3111, allocations: 0.8002 MB / 0.6291 GB, free: 0.5547 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.001201/0.3123, allocations: 0.6329 MB / 0.6297 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001876/0.3142, allocations: 1.588 MB / 0.6313 GB, free: 14.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004985/0.3147, allocations: 324.7 kB / 0.6316 GB, free: 14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009077/0.3156, allocations: 0.6535 MB / 0.6322 GB, free: 13.35 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3168, allocations: 0.8207 MB / 0.633 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002814/0.3171, allocations: 127.9 kB / 0.6331 GB, free: 12.4 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005647/0.3177, allocations: 263.9 kB / 0.6334 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003152/0.318, allocations: 330.6 kB / 0.6337 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006698/0.3187, allocations: 0.668 MB / 0.6343 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.3203, allocations: 1.662 MB / 0.636 GB, free: 9.477 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3204, allocations: 0 / 0.636 GB, free: 9.477 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3204, allocations: 0 / 0.636 GB, free: 9.477 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.3204, allocations: 0 / 0.636 GB, free: 9.477 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.008951/0.3293, allocations: 2.688 MB / 0.6386 GB, free: 6.719 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3294, allocations: 8.031 kB / 0.6386 GB, free: 6.711 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.3296, allocations: 130.6 kB / 0.6387 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005237/0.3348, allocations: 0.7787 MB / 0.6395 GB, free: 5.793 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.3363, allocations: 0.8786 MB / 0.6403 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002891/0.3366, allocations: 256.2 kB / 0.6406 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.3368, allocations: 87.91 kB / 0.6407 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.339, allocations: 1.086 MB / 0.6417 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.339, allocations: 4 kB / 0.6417 GB, free: 3.383 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-05/0.3391, allocations: 32 kB / 0.6418 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.3392, allocations: 20 kB / 0.6418 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.3413, allocations: 0.9877 MB / 0.6427 GB, free: 2.344 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.006573/0.3479, allocations: 3.804 MB / 0.6465 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008051/0.356, allocations: 2.379 MB / 0.6488 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.3575, allocations: 0.6723 MB / 0.6494 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.3576, allocations: 20.97 kB / 0.6495 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0017/0.3593, allocations: 0.8255 MB / 0.6503 GB, free: 10.35 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.435e-06/0.3593, allocations: 0 / 0.6503 GB, free: 10.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03167/0.391, allocations: 7.07 MB / 0.6572 GB, free: 3.215 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.3911, allocations: 123.7 kB / 0.6573 GB, free: 3.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.3927, allocations: 1.079 MB / 0.6583 GB, free: 1.977 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.3929, allocations: 45.7 kB / 0.6584 GB, free: 1.926 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/0.3933, allocations: 496.8 kB / 0.6589 GB, free: 1.434 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003562/0.3936, allocations: 362.8 kB / 0.6592 GB, free: 1.074 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/0.3942, allocations: 291.4 kB / 0.6595 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.3943, allocations: 309 kB / 0.6598 GB, free: 492 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.396, allocations: 0.7653 MB / 0.6605 GB, free: 15.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.3978, allocations: 0.9304 MB / 0.6614 GB, free: 14.74 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02587/0.4237, allocations: 5.575 MB / 0.6669 GB, free: 9.082 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4237, allocations: 0 / 0.6669 GB, free: 9.082 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01465/0.4384, allocations: 4.34 MB / 0.6711 GB, free: 4.715 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.4385, allocations: 63.41 kB / 0.6712 GB, free: 4.641 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.4385, allocations: 0 / 0.6712 GB, free: 4.641 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006077/0.4446, allocations: 1.512 MB / 0.6727 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.4462, allocations: 303.5 kB / 0.6729 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/0.4676, allocations: 8.252 MB / 0.681 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.4696, allocations: 206.8 kB / 0.6812 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.4697, allocations: 55.97 kB / 0.6813 GB, free: 10.16 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.0006467/0.4704, allocations: 300.3 kB / 0.6815 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/0.4707, allocations: 130.3 kB / 0.6817 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/0.4848, allocations: 3.877 MB / 0.6855 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/0.4849, allocations: 12 kB / 0.6855 GB, free: 5.797 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.4849, allocations: 8 kB / 0.6855 GB, free: 5.789 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.4849, allocations: 3.984 kB / 0.6855 GB, free: 5.785 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.016/0.5009, allocations: 5.448 MB / 0.6908 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/0.501, allocations: 7.984 kB / 0.6908 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006534/0.5016, allocations: 103.8 kB / 0.6909 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006301/0.5079, allocations: 1.614 MB / 0.6925 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001847/0.5081, allocations: 24 kB / 0.6925 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02214/0.5303, allocations: 9.595 MB / 0.7019 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.5303, allocations: 0 / 0.7019 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/0.5464, allocations: 4.731 MB / 0.7065 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004398/0.5469, allocations: 227.1 kB / 0.7067 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.5471, allocations: 24 kB / 0.7067 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.5484, allocations: 111.9 kB / 0.7068 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005977/0.549, allocations: 196.6 kB / 0.707 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-05/0.5491, allocations: 28 kB / 0.707 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001114/0.5502, allocations: 0.7235 MB / 0.7078 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5502, allocations: 0 / 0.7078 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001336/0.5516, allocations: 479.5 kB / 0.7082 GB, free: 14.04 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.01655/0.5681, allocations: 5.333 MB / 0.7134 GB, free: 8.656 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006691/0.5748, allocations: 2.502 MB / 0.7159 GB, free: 6.109 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.5749, allocations: 4.188 kB / 0.7159 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004806/0.5797, allocations: 1.602 MB / 0.7174 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.5807, allocations: 114.3 kB / 0.7175 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04174/0.6224, allocations: 16.01 MB / 0.7332 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/0.6231, allocations: 1.124 MB / 0.7343 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005423/0.6237, allocations: 120 kB / 0.7344 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006284/0.6243, allocations: 471.3 kB / 0.7348 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of SimCode: time 7.72e-07/0.6243, allocations: 4 kB / 0.7348 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3184/0.9427, allocations: 35.55 MB / 0.7696 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.68, allocations: 11 kB / 0.7696 GB, free: 137.9 MB / 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)