Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_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.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_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_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.001201/0.0012, 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.307/1.307, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.001038/0.001038, 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.1.0-master/package.mo): time 0.4355/0.4355, allocations: 79.46 MB / 420.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003689, allocations: 16 kB / 0.4891 GB, free: 5.512 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3311, allocations: 69.5 MB / 0.557 GB, free: 37.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.004955/0.3361, allocations: 5.927 MB / 0.5627 GB, free: 37.33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.3397, allocations: 2.002 MB / 0.5647 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005341/0.3402, allocations: 11.53 kB / 0.5647 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005452/0.3408, allocations: 173.9 kB / 0.5649 GB, free: 36.99 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.3423, allocations: 0.7241 MB / 0.5656 GB, free: 36.9 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.344, allocations: 0.5434 MB / 0.5661 GB, free: 36.83 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002194/0.3462, allocations: 1.012 MB / 0.5671 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005783/0.3468, allocations: 277.8 kB / 0.5674 GB, free: 36.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009233/0.3477, allocations: 0.5642 MB / 0.5679 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.3488, allocations: 0.7225 MB / 0.5686 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001845/0.349, allocations: 61.97 kB / 0.5687 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006399/0.3497, allocations: 173.8 kB / 0.5688 GB, free: 36.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.35, allocations: 248.5 kB / 0.5691 GB, free: 35.99 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.3503, allocations: 238.5 kB / 0.5693 GB, free: 35.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.3519, allocations: 1.199 MB / 0.5705 GB, free: 35.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.352, allocations: 0 / 0.5705 GB, free: 35.49 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.352, allocations: 2.781 kB / 0.5705 GB, free: 35.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.352, allocations: 0 / 0.5705 GB, free: 35.49 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.0123/0.3643, allocations: 2.528 MB / 0.573 GB, free: 34.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3644, allocations: 8.906 kB / 0.573 GB, free: 34.39 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003356/0.3647, allocations: 129.5 kB / 0.5731 GB, free: 34.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00893/0.3737, allocations: 0.7849 MB / 0.5739 GB, free: 34.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/0.3763, allocations: 0.867 MB / 0.5747 GB, free: 33.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/0.3767, allocations: 272.1 kB / 0.575 GB, free: 33.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/0.3769, allocations: 86.22 kB / 0.575 GB, free: 33.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003702/0.3806, allocations: 1.448 MB / 0.5765 GB, free: 32.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.3807, allocations: 0 / 0.5765 GB, free: 32.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.3808, allocations: 43.39 kB / 0.5765 GB, free: 32.74 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.3809, allocations: 25.56 kB / 0.5765 GB, free: 32.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.3838, allocations: 1.046 MB / 0.5775 GB, free: 32.41 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.008081/0.3919, allocations: 4.002 MB / 0.5815 GB, free: 29.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.4031, allocations: 3.1 MB / 0.5845 GB, free: 28.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002032/0.4033, allocations: 21.44 kB / 0.5845 GB, free: 28.86 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002504/0.4058, allocations: 0.8038 MB / 0.5853 GB, free: 28.56 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 5.45e-06/0.4059, allocations: 0.875 kB / 0.5853 GB, free: 28.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.04613/0.452, allocations: 8.816 MB / 0.5939 GB, free: 26.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/0.4522, allocations: 203.4 kB / 0.5941 GB, free: 26.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.4546, allocations: 1.076 MB / 0.5951 GB, free: 26.29 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002548/0.4549, allocations: 51.2 kB / 0.5952 GB, free: 26.24 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.4553, allocations: 487.8 kB / 0.5957 GB, free: 25.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000439/0.4558, allocations: 330.7 kB / 0.596 GB, free: 25.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.4559, allocations: 34.5 kB / 0.596 GB, free: 25.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.4561, allocations: 375.5 kB / 0.5964 GB, free: 25.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/0.4587, allocations: 0.8072 MB / 0.5972 GB, free: 24.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/0.4615, allocations: 1.148 MB / 0.5983 GB, free: 24.28 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.03573/0.4973, allocations: 6.051 MB / 0.6042 GB, free: 22.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-05/0.4973, allocations: 3 kB / 0.6042 GB, free: 22.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.02251/0.5199, allocations: 5.22 MB / 0.6093 GB, free: 21.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/0.52, allocations: 66.16 kB / 0.6093 GB, free: 21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/0.52, allocations: 10.75 kB / 0.6094 GB, free: 21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007303/0.5273, allocations: 1.847 MB / 0.6112 GB, free: 20.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.5289, allocations: 312.8 kB / 0.6115 GB, free: 20.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01963/0.5485, allocations: 9.248 MB / 0.6205 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/0.5506, allocations: 234.8 kB / 0.6207 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/0.5509, allocations: 67.98 kB / 0.6208 GB, free: 10.91 MB / 430.1 MB Warning: Assuming fixed start value for the following 3 variables: 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 Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.ExcitationSystem.y = 0.0 aVRTypeII.simpleLagLim.state = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 2 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0007665/0.5517, allocations: 334.3 kB / 0.6211 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001888/0.5536, allocations: 0.6973 MB / 0.6218 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/0.5673, allocations: 4.994 MB / 0.6267 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/0.5673, allocations: 12 kB / 0.6267 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/0.5674, allocations: 8 kB / 0.6267 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.669e-05/0.5674, allocations: 3.984 kB / 0.6267 GB, free: 4.816 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.01579/0.5832, allocations: 6.608 MB / 0.6331 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.5833, allocations: 4 kB / 0.6331 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006165/0.5839, allocations: 107.8 kB / 0.6332 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006561/0.5905, allocations: 2 MB / 0.6352 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.5907, allocations: 24 kB / 0.6352 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02512/0.6158, allocations: 12.49 MB / 0.6474 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.6159, allocations: 7.875 kB / 0.6474 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/0.6335, allocations: 6.058 MB / 0.6533 GB, free: 8.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005858/0.6341, allocations: 247.1 kB / 0.6536 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004764/0.6346, allocations: 24 kB / 0.6536 GB, free: 8.645 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.6361, allocations: 143.9 kB / 0.6537 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005963/0.6367, allocations: 184.7 kB / 0.6539 GB, free: 8.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/0.6369, allocations: 39.41 kB / 0.6539 GB, free: 8.285 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.6383, allocations: 0.7199 MB / 0.6546 GB, free: 7.559 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6383, allocations: 0 / 0.6546 GB, free: 7.559 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002023/0.6403, allocations: 491.7 kB / 0.6551 GB, free: 7.078 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01754/0.6578, allocations: 6.864 MB / 0.6618 GB, free: 148 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007531/0.6654, allocations: 2.856 MB / 0.6646 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.6655, allocations: 0 / 0.6646 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004708/0.6702, allocations: 1.591 MB / 0.6662 GB, free: 11.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.6723, allocations: 0.5703 MB / 0.6667 GB, free: 11.04 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008542/0.6809, allocations: 9.815 MB / 0.6763 GB, free: 1.027 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007958/0.6817, allocations: 1.179 MB / 0.6775 GB, free: 15.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005024/0.6822, allocations: 120.7 kB / 0.6776 GB, free: 15.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006619/0.6829, allocations: 491.3 kB / 0.678 GB, free: 15.22 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6829, allocations: 4 kB / 0.678 GB, free: 15.21 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05685/0.7398, allocations: 31.74 MB / 0.709 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.74, allocations: 245.3 kB / 0.7093 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.25, allocations: 4.078 kB / 0.7093 GB, free: 15.61 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1) Environment - environmentSimulation: