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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_release_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/Complex 4.0.0+maint.om/package.mo): time 0.002236/0.002236, allocations: 180.4 kB / 15.45 MB, free: 6.23 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.644/1.644, allocations: 223.3 MB / 239.5 MB, free: 1.629 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008121/0.0008121, allocations: 106.1 kB / 290.7 MB, free: 13.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5788/0.5788, allocations: 78.62 MB / 420.4 MB, free: 44.02 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003831, allocations: 12 kB / 0.4889 GB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3863, allocations: 69.34 MB / 0.5566 GB, free: 38.73 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.00674/0.3931, allocations: 6.408 MB / 0.5628 GB, free: 35.94 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004934/0.3981, allocations: 1.995 MB / 0.5648 GB, free: 35.14 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009387/0.3991, allocations: 11.22 kB / 0.5648 GB, free: 35.14 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007513/0.3998, allocations: 185.7 kB / 0.565 GB, free: 35.08 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002253/0.4021, allocations: 0.7044 MB / 0.5657 GB, free: 34.77 MB / 426.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.001585/0.4037, allocations: 0.5953 MB / 0.5663 GB, free: 34.65 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.406, allocations: 1.495 MB / 0.5677 GB, free: 34.24 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005331/0.4066, allocations: 295 kB / 0.568 GB, free: 34.09 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.4078, allocations: 0.566 MB / 0.5685 GB, free: 33.84 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009546/0.4088, allocations: 0.7463 MB / 0.5693 GB, free: 33.51 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.409, allocations: 59.5 kB / 0.5693 GB, free: 33.51 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007442/0.4097, allocations: 198.3 kB / 0.5695 GB, free: 33.46 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.41, allocations: 250.8 kB / 0.5698 GB, free: 33.32 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005185/0.4105, allocations: 0.6311 MB / 0.5704 GB, free: 32.89 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.4118, allocations: 1.548 MB / 0.5719 GB, free: 32.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4118, allocations: 0 / 0.5719 GB, free: 32.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4118, allocations: 0 / 0.5719 GB, free: 32.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.4118, allocations: 0 / 0.5719 GB, free: 32.32 MB / 426.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.007566/0.4194, allocations: 2.499 MB / 0.5743 GB, free: 31.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.4195, allocations: 9 kB / 0.5743 GB, free: 31.19 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002735/0.4198, allocations: 126.2 kB / 0.5745 GB, free: 31.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004997/0.4248, allocations: 0.7775 MB / 0.5752 GB, free: 30.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.4267, allocations: 0.8923 MB / 0.5761 GB, free: 30.35 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002895/0.427, allocations: 262.2 kB / 0.5763 GB, free: 30.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.4272, allocations: 85.25 kB / 0.5764 GB, free: 30.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.4296, allocations: 1.149 MB / 0.5775 GB, free: 29.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.4296, allocations: 2.812 kB / 0.5775 GB, free: 29.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.825e-05/0.4297, allocations: 30.06 kB / 0.5776 GB, free: 29.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.4297, allocations: 24.23 kB / 0.5776 GB, free: 29.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.4316, allocations: 1.055 MB / 0.5786 GB, free: 29.31 MB / 426.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.005807/0.4374, allocations: 3.901 MB / 0.5824 GB, free: 27.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006934/0.4443, allocations: 2.912 MB / 0.5853 GB, free: 26.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.4457, allocations: 0.7406 MB / 0.586 GB, free: 25.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.4458, allocations: 17.98 kB / 0.586 GB, free: 25.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001498/0.4473, allocations: 0.8758 MB / 0.5869 GB, free: 25.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.494e-06/0.4473, allocations: 0 / 0.5869 GB, free: 25.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02886/0.4762, allocations: 8.675 MB / 0.5953 GB, free: 24.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.829e-05/0.4763, allocations: 118.7 kB / 0.5955 GB, free: 23.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002622/0.4789, allocations: 1.085 MB / 0.5965 GB, free: 23.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002502/0.4792, allocations: 49.77 kB / 0.5966 GB, free: 23.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004627/0.4797, allocations: 489.4 kB / 0.597 GB, free: 23.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004793/0.4802, allocations: 357.6 kB / 0.5974 GB, free: 22.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003865/0.4806, allocations: 150.2 kB / 0.5975 GB, free: 22.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.4806, allocations: 301.1 kB / 0.5978 GB, free: 22.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.4826, allocations: 0.8266 MB / 0.5986 GB, free: 22.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/0.4847, allocations: 1.007 MB / 0.5996 GB, free: 21.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02455/0.5092, allocations: 6.009 MB / 0.6055 GB, free: 19.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.5093, allocations: 1.281 kB / 0.6055 GB, free: 19.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01605/0.5254, allocations: 5.168 MB / 0.6105 GB, free: 18.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.684e-05/0.5255, allocations: 64.89 kB / 0.6106 GB, free: 18.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/0.5255, allocations: 4.656 kB / 0.6106 GB, free: 18.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005214/0.5307, allocations: 1.788 MB / 0.6123 GB, free: 16.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.5322, allocations: 303.5 kB / 0.6126 GB, free: 16.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/0.5503, allocations: 8.608 MB / 0.621 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/0.5524, allocations: 238.8 kB / 0.6212 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.5527, allocations: 55.97 kB / 0.6213 GB, free: 7.113 MB / 426.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 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.0008801/0.5536, allocations: 306.1 kB / 0.6216 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003933/0.554, allocations: 126.4 kB / 0.6217 GB, free: 6.676 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/0.5661, allocations: 4.725 MB / 0.6263 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.5661, allocations: 8 kB / 0.6263 GB, free: 1.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.33e-05/0.5661, allocations: 11.94 kB / 0.6263 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.5662, allocations: 3.984 kB / 0.6263 GB, free: 1.895 MB / 426.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.01553/0.5817, allocations: 6.309 MB / 0.6325 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.5818, allocations: 0 / 0.6325 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.5824, allocations: 107.8 kB / 0.6326 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005727/0.5881, allocations: 1.891 MB / 0.6345 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001902/0.5884, allocations: 20 kB / 0.6345 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/0.6122, allocations: 9.661 MB / 0.6439 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6122, allocations: 0 / 0.6439 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/0.6285, allocations: 5.631 MB / 0.6494 GB, free: 9.844 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006964/0.6293, allocations: 231.3 kB / 0.6496 GB, free: 9.598 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005256/0.6298, allocations: 20.09 kB / 0.6497 GB, free: 9.578 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.6314, allocations: 151.8 kB / 0.6498 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007483/0.6322, allocations: 192.7 kB / 0.65 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/0.6323, allocations: 24 kB / 0.65 GB, free: 9.215 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001641/0.634, allocations: 0.7313 MB / 0.6507 GB, free: 8.477 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.634, allocations: 0 / 0.6507 GB, free: 8.477 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002261/0.6363, allocations: 471.5 kB / 0.6512 GB, free: 8.016 MB / 458.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 (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.01633/0.6526, allocations: 6.247 MB / 0.6573 GB, free: 1.723 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007408/0.6601, allocations: 2.782 MB / 0.66 GB, free: 14.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6601, allocations: 0 / 0.66 GB, free: 14.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004673/0.6648, allocations: 1.822 MB / 0.6618 GB, free: 13.05 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.6666, allocations: 114.1 kB / 0.6619 GB, free: 12.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04491/0.7115, allocations: 18.98 MB / 0.6804 GB, free: 9.508 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009442/0.7125, allocations: 1.124 MB / 0.6815 GB, free: 8.355 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007193/0.7133, allocations: 120 kB / 0.6816 GB, free: 8.234 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008851/0.7142, allocations: 471.3 kB / 0.6821 GB, free: 7.773 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7142, allocations: 0 / 0.6821 GB, free: 7.773 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06179/0.776, allocations: 31.11 MB / 0.7125 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/0.7763, allocations: 272.1 kB / 0.7127 GB, free: 8.566 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.222/3.998, allocations: 6.656 kB / 0.7127 GB, free: 8.562 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)