Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.001023/0.001023, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.297/1.297, allocations: 223.2 MB / 238.9 MB, free: 5.66 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.001098/0.001098, allocations: 185 kB / 290.2 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4511/0.4511, allocations: 78.53 MB / 419.8 MB, free: 4.359 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 16 kB / 499.7 MB, free: 6.316 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 69.36 MB / 0.5558 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2335/0.3663, allocations: 5.415 MB / 0.5611 GB, free: 37.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.3693, allocations: 1.839 MB / 0.5629 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004839/0.3698, allocations: 11 kB / 0.5629 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003716/0.3702, allocations: 149.2 kB / 0.563 GB, free: 37.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001553/0.3718, allocations: 0.6716 MB / 0.5637 GB, free: 37.09 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.001039/0.3728, allocations: 0.5058 MB / 0.5642 GB, free: 37.06 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009607/0.3738, allocations: 0.8839 MB / 0.565 GB, free: 37.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.3741, allocations: 230.6 kB / 0.5652 GB, free: 36.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005286/0.3747, allocations: 0.4993 MB / 0.5657 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006075/0.3753, allocations: 0.6618 MB / 0.5664 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.905e-05/0.3754, allocations: 56.69 kB / 0.5664 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003583/0.3757, allocations: 167.2 kB / 0.5666 GB, free: 36.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.3759, allocations: 226.2 kB / 0.5668 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.3761, allocations: 213 kB / 0.567 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000848/0.3769, allocations: 1.049 MB / 0.568 GB, free: 36.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.377, allocations: 0.5625 kB / 0.568 GB, free: 36.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.377, allocations: 2.406 kB / 0.568 GB, free: 36.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.377, allocations: 0 / 0.568 GB, free: 36.44 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006913/0.3839, allocations: 2.319 MB / 0.5703 GB, free: 35.6 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3839, allocations: 11.84 kB / 0.5703 GB, free: 35.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.3841, allocations: 120.4 kB / 0.5704 GB, free: 35.56 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004837/0.389, allocations: 0.7732 MB / 0.5712 GB, free: 35.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.39, allocations: 0.7517 MB / 0.5719 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.3902, allocations: 269.5 kB / 0.5722 GB, free: 34.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3904, allocations: 79.94 kB / 0.5723 GB, free: 34.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.3924, allocations: 1.235 MB / 0.5735 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.3925, allocations: 0 / 0.5735 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.3926, allocations: 32.41 kB / 0.5735 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.3926, allocations: 16.41 kB / 0.5735 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.3943, allocations: 1.018 MB / 0.5745 GB, free: 34.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.004726/0.3991, allocations: 3.823 MB / 0.5782 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007166/0.4063, allocations: 2.857 MB / 0.581 GB, free: 31.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.041e-05/0.4064, allocations: 23.22 kB / 0.581 GB, free: 31.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.4064, allocations: 46.03 kB / 0.5811 GB, free: 31.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.364e-06/0.4064, allocations: 0 / 0.5811 GB, free: 31.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02817/0.4346, allocations: 8.216 MB / 0.5891 GB, free: 29.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.4347, allocations: 101.7 kB / 0.5892 GB, free: 29.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.436, allocations: 0.9574 MB / 0.5901 GB, free: 29.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.4362, allocations: 41.48 kB / 0.5902 GB, free: 29.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.4364, allocations: 457.4 kB / 0.5906 GB, free: 28.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/0.4367, allocations: 318.3 kB / 0.5909 GB, free: 28.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.4368, allocations: 29.66 kB / 0.591 GB, free: 28.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.4369, allocations: 357.9 kB / 0.5913 GB, free: 28.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.4384, allocations: 0.7537 MB / 0.592 GB, free: 27.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.44, allocations: 0.9679 MB / 0.593 GB, free: 27.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4416, allocations: 0.8357 MB / 0.5938 GB, free: 27.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.4416, allocations: 1.75 kB / 0.5938 GB, free: 27.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01426/0.4559, allocations: 4.93 MB / 0.5986 GB, free: 25.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4559, allocations: 7.031 kB / 0.5986 GB, free: 25.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.456, allocations: 6.109 kB / 0.5986 GB, free: 25.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006462/0.4624, allocations: 1.863 MB / 0.6004 GB, free: 25.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.4637, allocations: 254.8 kB / 0.6007 GB, free: 25.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02272/0.4864, allocations: 9.189 MB / 0.6097 GB, free: 21.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.4883, allocations: 201.3 kB / 0.6098 GB, free: 21.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.4884, allocations: 59.44 kB / 0.6099 GB, free: 21.66 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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005569/0.489, allocations: 259.2 kB / 0.6102 GB, free: 21.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009337/0.4899, allocations: 368.6 kB / 0.6105 GB, free: 21.21 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/0.5017, allocations: 4.414 MB / 0.6148 GB, free: 17.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.5018, allocations: 11.95 kB / 0.6148 GB, free: 17.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5018, allocations: 8 kB / 0.6148 GB, free: 17.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.5018, allocations: 8.547 kB / 0.6148 GB, free: 17.24 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.0139/0.5157, allocations: 6.017 MB / 0.6207 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.5158, allocations: 4 kB / 0.6207 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006478/0.5164, allocations: 112.8 kB / 0.6208 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00529/0.5217, allocations: 1.861 MB / 0.6226 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.5219, allocations: 23.98 kB / 0.6227 GB, free: 9.105 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.5397, allocations: 11.21 MB / 0.6336 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.5398, allocations: 4 kB / 0.6336 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/0.5553, allocations: 5.517 MB / 0.639 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/0.5559, allocations: 211.4 kB / 0.6392 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.5561, allocations: 24 kB / 0.6392 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.5572, allocations: 122.7 kB / 0.6393 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005061/0.5577, allocations: 172.7 kB / 0.6395 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.774e-05/0.5578, allocations: 20 kB / 0.6395 GB, free: 7.449 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008457/0.5586, allocations: 0.6395 MB / 0.6402 GB, free: 6.801 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5586, allocations: 3.938 kB / 0.6402 GB, free: 6.797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001576/0.5602, allocations: 443.6 kB / 0.6406 GB, free: 6.363 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01566/0.5759, allocations: 6.185 MB / 0.6466 GB, free: 136 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006369/0.5823, allocations: 2.579 MB / 0.6491 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.5823, allocations: 5.312 kB / 0.6491 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004066/0.5864, allocations: 1.54 MB / 0.6507 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.5878, allocations: 339.9 kB / 0.651 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005545/0.5933, allocations: 6.36 MB / 0.6572 GB, free: 5.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.5939, allocations: 1.104 MB / 0.6583 GB, free: 4.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003411/0.5943, allocations: 98.77 kB / 0.6584 GB, free: 3.941 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004973/0.5948, allocations: 435.3 kB / 0.6588 GB, free: 3.516 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5948, allocations: 0 / 0.6588 GB, free: 3.516 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.6413, allocations: 28.46 MB / 0.6866 GB, free: 7.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.6416, allocations: 230.4 kB / 0.6868 GB, free: 7.262 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.156, allocations: 0 / 0.6868 GB, free: 7.262 MB / 494.1 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: