Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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 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_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_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.0009528/0.0009528, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.302/1.302, allocations: 223.2 MB / 239 MB, free: 5.441 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.001206/0.001206, allocations: 188.3 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4575/0.4575, allocations: 79.48 MB / 420.8 MB, free: 3.863 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003744, allocations: 12 kB / 0.4892 GB, free: 5.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3239, allocations: 69.51 MB / 0.5571 GB, free: 37.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005041/0.329, allocations: 5.686 MB / 0.5627 GB, free: 37.33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.3326, allocations: 1.826 MB / 0.5644 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008149/0.3334, allocations: 13.84 kB / 0.5644 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004475/0.3339, allocations: 149.1 kB / 0.5646 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.3355, allocations: 0.623 MB / 0.5652 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.3366, allocations: 0.5108 MB / 0.5657 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.3378, allocations: 1.236 MB / 0.5669 GB, free: 36.24 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003254/0.3382, allocations: 231.9 kB / 0.5671 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005406/0.3387, allocations: 0.4957 MB / 0.5676 GB, free: 36.05 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006048/0.3393, allocations: 0.6725 MB / 0.5683 GB, free: 35.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.3395, allocations: 53.41 kB / 0.5683 GB, free: 35.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004065/0.3399, allocations: 186.3 kB / 0.5685 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.3401, allocations: 220.9 kB / 0.5687 GB, free: 35.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.3403, allocations: 216.4 kB / 0.5689 GB, free: 35.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008237/0.3411, allocations: 1.087 MB / 0.57 GB, free: 35.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3411, allocations: 0 / 0.57 GB, free: 35.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3412, allocations: 1.344 kB / 0.57 GB, free: 35.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.3412, allocations: 0.5625 kB / 0.57 GB, free: 35.54 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.006452/0.3476, allocations: 2.314 MB / 0.5722 GB, free: 34.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3477, allocations: 9.844 kB / 0.5722 GB, free: 34.7 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002661/0.348, allocations: 118.9 kB / 0.5724 GB, free: 34.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004612/0.3526, allocations: 0.7734 MB / 0.5731 GB, free: 34.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.3539, allocations: 0.7523 MB / 0.5738 GB, free: 34.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.3542, allocations: 274.1 kB / 0.5741 GB, free: 33.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.3543, allocations: 78.94 kB / 0.5742 GB, free: 33.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.3564, allocations: 1.251 MB / 0.5754 GB, free: 33.44 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3564, allocations: 3.938 kB / 0.5754 GB, free: 33.44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.529e-05/0.3565, allocations: 25.75 kB / 0.5754 GB, free: 33.42 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.3565, allocations: 18.41 kB / 0.5755 GB, free: 33.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.3583, allocations: 1.016 MB / 0.5764 GB, free: 33.1 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.005113/0.3634, allocations: 3.643 MB / 0.58 GB, free: 30.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006506/0.3699, allocations: 2.856 MB / 0.5828 GB, free: 30.08 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.3712, allocations: 0.7183 MB / 0.5835 GB, free: 29.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.3713, allocations: 19.39 kB / 0.5835 GB, free: 29.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.3713, allocations: 38.88 kB / 0.5835 GB, free: 29.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.236e-06/0.3713, allocations: 0 / 0.5835 GB, free: 29.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02672/0.3981, allocations: 8.416 MB / 0.5918 GB, free: 28.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3982, allocations: 95.09 kB / 0.5919 GB, free: 28.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.3998, allocations: 0.9547 MB / 0.5928 GB, free: 27.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001889/0.4, allocations: 41.77 kB / 0.5928 GB, free: 27.72 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003739/0.4004, allocations: 461 kB / 0.5933 GB, free: 27.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/0.4008, allocations: 315.8 kB / 0.5936 GB, free: 27.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/0.4009, allocations: 33.62 kB / 0.5936 GB, free: 27.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.401, allocations: 354.2 kB / 0.5939 GB, free: 26.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.4026, allocations: 0.7562 MB / 0.5947 GB, free: 26.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.4042, allocations: 0.9739 MB / 0.5956 GB, free: 26.01 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.4058, allocations: 0.8309 MB / 0.5964 GB, free: 25.65 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.4058, allocations: 1.375 kB / 0.5964 GB, free: 25.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0129/0.4187, allocations: 4.92 MB / 0.6012 GB, free: 24.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4188, allocations: 7.906 kB / 0.6013 GB, free: 24.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.4188, allocations: 4.875 kB / 0.6013 GB, free: 24.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006006/0.4248, allocations: 1.872 MB / 0.6031 GB, free: 24.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.4262, allocations: 253.9 kB / 0.6033 GB, free: 24.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01902/0.4453, allocations: 8.781 MB / 0.6119 GB, free: 20.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.4469, allocations: 200.6 kB / 0.6121 GB, free: 19.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.4471, allocations: 58.05 kB / 0.6122 GB, free: 19.79 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.0005808/0.4477, allocations: 255.5 kB / 0.6124 GB, free: 19.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009942/0.4487, allocations: 364.8 kB / 0.6127 GB, free: 19.21 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/0.4596, allocations: 4.416 MB / 0.6171 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/0.4596, allocations: 12 kB / 0.6171 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.917e-05/0.4597, allocations: 5.719 kB / 0.6171 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.579e-05/0.4597, allocations: 10.33 kB / 0.6171 GB, free: 15.02 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.01458/0.4743, allocations: 5.978 MB / 0.6229 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.4743, allocations: 0 / 0.6229 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007644/0.4751, allocations: 111.9 kB / 0.623 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007011/0.4822, allocations: 1.869 MB / 0.6249 GB, free: 6.957 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/0.4824, allocations: 16 kB / 0.6249 GB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02353/0.5059, allocations: 10.8 MB / 0.6354 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.506, allocations: 1.062 kB / 0.6354 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/0.5199, allocations: 5.515 MB / 0.6408 GB, free: 6.254 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004234/0.5204, allocations: 219.4 kB / 0.641 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.5206, allocations: 20 kB / 0.641 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.5217, allocations: 119.9 kB / 0.6411 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004876/0.5222, allocations: 172.7 kB / 0.6413 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.373e-05/0.5223, allocations: 24 kB / 0.6413 GB, free: 5.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000875/0.5232, allocations: 0.6356 MB / 0.642 GB, free: 5.047 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5232, allocations: 0 / 0.642 GB, free: 5.047 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00147/0.5246, allocations: 431.7 kB / 0.6424 GB, free: 4.625 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.01435/0.539, allocations: 6.104 MB / 0.6483 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006357/0.5454, allocations: 2.587 MB / 0.6509 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5454, allocations: 0 / 0.6509 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003769/0.5492, allocations: 1.538 MB / 0.6524 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.5509, allocations: 357.7 kB / 0.6527 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02351/0.5744, allocations: 11.19 MB / 0.6636 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006744/0.5751, allocations: 1.081 MB / 0.6647 GB, free: 13.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004411/0.5756, allocations: 93.55 kB / 0.6648 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006233/0.5762, allocations: 436.9 kB / 0.6652 GB, free: 12.82 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5762, allocations: 0 / 0.6652 GB, free: 12.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05247/0.6287, allocations: 29.14 MB / 0.6936 GB, free: 124 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.629, allocations: 246.7 kB / 0.6939 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.492/3.121, allocations: 0 / 0.6939 GB, free: 15.88 MB / 0.4981 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: