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.001371/0.001371, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001569/0.001569, allocations: 184.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4199/0.4199, allocations: 78.54 MB / 418.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 75.88 kB / 497.5 MB, free: 6.348 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1249, allocations: 68.18 MB / 0.5525 GB, free: 2.137 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2211/0.346, allocations: 6.564 MB / 0.5589 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003631/0.3497, allocations: 1.962 MB / 0.5608 GB, free: 35.49 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004777/0.3502, allocations: 8.719 kB / 0.5608 GB, free: 35.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007035/0.3509, allocations: 243.9 kB / 0.561 GB, free: 35.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00162/0.3526, allocations: 0.7948 MB / 0.5618 GB, free: 35.33 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.001104/0.3537, allocations: 0.6257 MB / 0.5624 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.3549, allocations: 1.582 MB / 0.564 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004015/0.3553, allocations: 329.3 kB / 0.5643 GB, free: 34.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006159/0.3559, allocations: 0.6468 MB / 0.5649 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006871/0.3566, allocations: 0.8311 MB / 0.5657 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.3568, allocations: 123.5 kB / 0.5658 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004283/0.3573, allocations: 258.6 kB / 0.5661 GB, free: 34.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.3575, allocations: 323.1 kB / 0.5664 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004394/0.358, allocations: 0.6769 MB / 0.5671 GB, free: 34.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3592, allocations: 1.638 MB / 0.5687 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3592, allocations: 3.422 kB / 0.5687 GB, free: 33.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3592, allocations: 2.625 kB / 0.5687 GB, free: 33.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.3592, allocations: 0 / 0.5687 GB, free: 33.88 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.00785/0.3671, allocations: 2.684 MB / 0.5713 GB, free: 32.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3671, allocations: 9.562 kB / 0.5713 GB, free: 32.9 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.3673, allocations: 126.4 kB / 0.5714 GB, free: 32.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004632/0.3719, allocations: 0.7767 MB / 0.5722 GB, free: 32.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3731, allocations: 0.8765 MB / 0.573 GB, free: 32.36 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.3733, allocations: 263.9 kB / 0.5733 GB, free: 32.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.3735, allocations: 90.72 kB / 0.5734 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.3753, allocations: 1.091 MB / 0.5744 GB, free: 32.08 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.3753, allocations: 0 / 0.5744 GB, free: 32.08 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.942e-05/0.3754, allocations: 30.81 kB / 0.5745 GB, free: 32.08 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.3754, allocations: 20 kB / 0.5745 GB, free: 32.08 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.3772, allocations: 0.9849 MB / 0.5754 GB, free: 32.07 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.005358/0.3826, allocations: 3.828 MB / 0.5792 GB, free: 30.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006916/0.3895, allocations: 2.365 MB / 0.5815 GB, free: 29.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.3909, allocations: 0.681 MB / 0.5822 GB, free: 29.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-05/0.391, allocations: 19.36 kB / 0.5822 GB, free: 29.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.3925, allocations: 0.8184 MB / 0.583 GB, free: 28.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.378e-06/0.3925, allocations: 0 / 0.583 GB, free: 28.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02945/0.422, allocations: 7.079 MB / 0.5899 GB, free: 27.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.4221, allocations: 125.6 kB / 0.59 GB, free: 27.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002369/0.4245, allocations: 1.083 MB / 0.5911 GB, free: 26.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.4247, allocations: 41.83 kB / 0.5911 GB, free: 26.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004109/0.4251, allocations: 497.9 kB / 0.5916 GB, free: 26.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.4255, allocations: 361.1 kB / 0.5919 GB, free: 26.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008371/0.4264, allocations: 286 kB / 0.5922 GB, free: 26.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.4264, allocations: 306.8 kB / 0.5925 GB, free: 25.79 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/0.4283, allocations: 0.7648 MB / 0.5932 GB, free: 25.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/0.4301, allocations: 0.9377 MB / 0.5941 GB, free: 25.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02334/0.4534, allocations: 5.594 MB / 0.5996 GB, free: 23.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.4535, allocations: 0 / 0.5996 GB, free: 23.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01405/0.4675, allocations: 4.337 MB / 0.6038 GB, free: 22.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.4676, allocations: 60.91 kB / 0.6039 GB, free: 22.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.4677, allocations: 4.406 kB / 0.6039 GB, free: 22.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005623/0.4733, allocations: 1.511 MB / 0.6054 GB, free: 21.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.4747, allocations: 296.9 kB / 0.6057 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01872/0.4935, allocations: 8.275 MB / 0.6137 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.4954, allocations: 198.8 kB / 0.6139 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.4956, allocations: 56.97 kB / 0.614 GB, free: 15.69 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.0007157/0.4964, allocations: 297.6 kB / 0.6143 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.4967, allocations: 134.3 kB / 0.6144 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/0.5084, allocations: 3.869 MB / 0.6182 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.5084, allocations: 13.31 kB / 0.6182 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.438e-05/0.5085, allocations: 4.562 kB / 0.6182 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.811e-05/0.5085, allocations: 9.422 kB / 0.6182 GB, free: 11.32 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.01335/0.5218, allocations: 5.458 MB / 0.6235 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.5219, allocations: 3.984 kB / 0.6235 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005234/0.5224, allocations: 91.91 kB / 0.6236 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005044/0.5274, allocations: 1.619 MB / 0.6252 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.5276, allocations: 20 kB / 0.6252 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01944/0.547, allocations: 9.61 MB / 0.6346 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.547, allocations: 5.266 kB / 0.6346 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/0.5616, allocations: 4.729 MB / 0.6392 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000469/0.5621, allocations: 235.1 kB / 0.6395 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003395/0.5625, allocations: 17.5 kB / 0.6395 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.5638, allocations: 111.9 kB / 0.6396 GB, free: 4.969 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005735/0.5644, allocations: 196.8 kB / 0.6398 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.69e-05/0.5645, allocations: 27.98 kB / 0.6398 GB, free: 4.746 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00129/0.5658, allocations: 0.7274 MB / 0.6405 GB, free: 4.012 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5658, allocations: 4 kB / 0.6405 GB, free: 4.008 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001772/0.5676, allocations: 467.5 kB / 0.641 GB, free: 3.551 MB / 446.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.01469/0.5823, allocations: 5.325 MB / 0.6462 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006696/0.589, allocations: 2.536 MB / 0.6486 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.589, allocations: 4 kB / 0.6486 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004392/0.5934, allocations: 1.606 MB / 0.6502 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.5948, allocations: 129.5 kB / 0.6503 GB, free: 9.852 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04127/0.6361, allocations: 16.76 MB / 0.6667 GB, free: 8.664 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008907/0.637, allocations: 1.13 MB / 0.6678 GB, free: 7.508 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005757/0.6376, allocations: 117.3 kB / 0.6679 GB, free: 7.395 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007408/0.6384, allocations: 471.3 kB / 0.6684 GB, free: 6.934 MB / 478.1 MB Notification: Performance of SimCode: time 3.978e-06/0.6384, allocations: 0 / 0.6684 GB, free: 6.934 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06376/0.7022, allocations: 33.83 MB / 0.7014 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.81, allocations: 7.891 kB / 0.7014 GB, free: 5.52 MB / 0.4981 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)