Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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_Discretized_Continuous,fileNamePrefix="OpenIPSL_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_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.001151/0.00115, allocations: 99.7 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.314/1.314, allocations: 223.2 MB / 238.9 MB, free: 5.5 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.001008/0.001008, allocations: 196.5 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4821/0.4821, allocations: 78.52 MB / 419.8 MB, free: 4.332 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 12 kB / 499.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.152, allocations: 69.36 MB / 0.5558 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.2591/0.4112, allocations: 5.91 MB / 0.5615 GB, free: 37.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003922/0.4151, allocations: 2 MB / 0.5635 GB, free: 37.06 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007366/0.4159, allocations: 11.94 kB / 0.5635 GB, free: 37.06 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006135/0.4165, allocations: 173.8 kB / 0.5637 GB, free: 37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.4182, allocations: 0.722 MB / 0.5644 GB, free: 36.91 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.001149/0.4194, allocations: 0.5383 MB / 0.5649 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.4206, allocations: 1.014 MB / 0.5659 GB, free: 36.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.421, allocations: 273.4 kB / 0.5662 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000636/0.4216, allocations: 0.57 MB / 0.5667 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007024/0.4223, allocations: 0.7175 MB / 0.5674 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.4225, allocations: 58.25 kB / 0.5675 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.4228, allocations: 171.4 kB / 0.5676 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.423, allocations: 257.9 kB / 0.5679 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.4232, allocations: 233.2 kB / 0.5681 GB, free: 36.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008623/0.4241, allocations: 1.198 MB / 0.5693 GB, free: 36.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.4241, allocations: 4.344 kB / 0.5693 GB, free: 36.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4241, allocations: 0 / 0.5693 GB, free: 36.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.4241, allocations: 1.594 kB / 0.5693 GB, free: 36.07 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.007512/0.4316, allocations: 2.528 MB / 0.5717 GB, free: 35.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4317, allocations: 8.656 kB / 0.5718 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.4319, allocations: 133.7 kB / 0.5719 GB, free: 35.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004898/0.4368, allocations: 0.7907 MB / 0.5727 GB, free: 34.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.4387, allocations: 0.8617 MB / 0.5735 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.439, allocations: 272.5 kB / 0.5738 GB, free: 34.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.4391, allocations: 89.06 kB / 0.5738 GB, free: 34.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/0.4416, allocations: 1.453 MB / 0.5753 GB, free: 33.84 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.4416, allocations: 0.5625 kB / 0.5753 GB, free: 33.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.036e-05/0.4417, allocations: 33.42 kB / 0.5753 GB, free: 33.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.4417, allocations: 21.56 kB / 0.5753 GB, free: 33.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001834/0.4436, allocations: 1.057 MB / 0.5763 GB, free: 33.47 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.005191/0.4488, allocations: 3.971 MB / 0.5802 GB, free: 30.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007326/0.4561, allocations: 3.103 MB / 0.5833 GB, free: 29.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.377e-05/0.4562, allocations: 14.17 kB / 0.5833 GB, free: 29.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001438/0.4577, allocations: 0.8141 MB / 0.5841 GB, free: 29.62 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 2.965e-06/0.4577, allocations: 0 / 0.5841 GB, free: 29.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02958/0.4873, allocations: 8.629 MB / 0.5925 GB, free: 28.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.4874, allocations: 198.9 kB / 0.5927 GB, free: 27.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.4892, allocations: 1.08 MB / 0.5937 GB, free: 27.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002136/0.4894, allocations: 48.42 kB / 0.5938 GB, free: 27.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/0.4897, allocations: 487.1 kB / 0.5942 GB, free: 26.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.4901, allocations: 330.5 kB / 0.5946 GB, free: 26.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.225e-05/0.4902, allocations: 31.34 kB / 0.5946 GB, free: 26.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4903, allocations: 372.8 kB / 0.5949 GB, free: 26.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4919, allocations: 0.8073 MB / 0.5957 GB, free: 26.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/0.4936, allocations: 1.147 MB / 0.5969 GB, free: 25.37 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02307/0.5167, allocations: 6.056 MB / 0.6028 GB, free: 23.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.217e-05/0.5168, allocations: 3.062 kB / 0.6028 GB, free: 23.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01556/0.5323, allocations: 5.222 MB / 0.6079 GB, free: 22.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.5324, allocations: 66.89 kB / 0.6079 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/0.5325, allocations: 11.22 kB / 0.6079 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006379/0.5389, allocations: 1.847 MB / 0.6097 GB, free: 21.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.5404, allocations: 315.8 kB / 0.61 GB, free: 21.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01865/0.5591, allocations: 9.24 MB / 0.6191 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/0.5612, allocations: 246.6 kB / 0.6193 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.5613, allocations: 67.97 kB / 0.6194 GB, free: 12.35 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.0006748/0.562, allocations: 338.5 kB / 0.6197 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001671/0.5637, allocations: 0.6885 MB / 0.6204 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/0.577, allocations: 4.998 MB / 0.6252 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.5771, allocations: 13.88 kB / 0.6253 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.5771, allocations: 8 kB / 0.6253 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/0.5771, allocations: 7.969 kB / 0.6253 GB, free: 6.254 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.01492/0.592, allocations: 6.6 MB / 0.6317 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.5921, allocations: 0 / 0.6317 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006302/0.5927, allocations: 113 kB / 0.6318 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006294/0.599, allocations: 2.002 MB / 0.6338 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001811/0.5993, allocations: 24 kB / 0.6338 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02365/0.6229, allocations: 12.51 MB / 0.646 GB, free: 492 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.623, allocations: 2.047 kB / 0.646 GB, free: 492 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01641/0.6394, allocations: 6.059 MB / 0.6519 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006154/0.64, allocations: 235.2 kB / 0.6522 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001919/0.6402, allocations: 28 kB / 0.6522 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.6414, allocations: 147.9 kB / 0.6523 GB, free: 9.938 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005351/0.6419, allocations: 180.7 kB / 0.6525 GB, free: 9.758 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.642, allocations: 28 kB / 0.6525 GB, free: 9.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.6431, allocations: 0.7238 MB / 0.6532 GB, free: 9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6431, allocations: 7.938 kB / 0.6533 GB, free: 8.992 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001668/0.6448, allocations: 495.6 kB / 0.6537 GB, free: 8.508 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.01663/0.6614, allocations: 6.86 MB / 0.6604 GB, free: 1.578 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006727/0.6682, allocations: 2.855 MB / 0.6632 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6683, allocations: 0 / 0.6632 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004133/0.6724, allocations: 1.596 MB / 0.6648 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.6742, allocations: 0.5718 MB / 0.6653 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007952/0.6822, allocations: 9.823 MB / 0.6749 GB, free: 2.453 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/0.683, allocations: 1.176 MB / 0.6761 GB, free: 1.246 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.6836, allocations: 126.8 kB / 0.6762 GB, free: 1.125 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.6842, allocations: 487.3 kB / 0.6767 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/0.6842, allocations: 0 / 0.6767 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05315/0.7373, allocations: 31.73 MB / 0.7076 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.7376, allocations: 254.5 kB / 0.7079 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.654/3.392, allocations: 0 / 0.7079 GB, free: 1.031 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1) Environment - environmentSimulation: