Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_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_Discretized_Continuous,fileNamePrefix="OpenIPSL_release_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_release_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/Complex 4.0.0+maint.om/package.mo): time 0.01/0.01, allocations: 169.2 kB / 15.12 MB, free: 5.559 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.363/1.363, allocations: 223.2 MB / 239 MB, free: 1.758 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.0008711/0.0008711, allocations: 107.2 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4465/0.4465, allocations: 78.59 MB / 419.9 MB, free: 44.18 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 16 kB / 499.9 MB, free: 2.867 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4008, allocations: 69.34 MB / 0.5559 GB, free: 38.81 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.006292/0.4072, allocations: 5.924 MB / 0.5616 GB, free: 37.68 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004152/0.4114, allocations: 1.996 MB / 0.5636 GB, free: 36.27 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.4124, allocations: 16.28 kB / 0.5636 GB, free: 36.26 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008948/0.4133, allocations: 170.2 kB / 0.5638 GB, free: 36.19 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002624/0.416, allocations: 0.723 MB / 0.5645 GB, free: 35.71 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.001776/0.4178, allocations: 0.5422 MB / 0.565 GB, free: 35.45 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.4201, allocations: 1.007 MB / 0.566 GB, free: 34.91 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006447/0.4207, allocations: 284.7 kB / 0.5663 GB, free: 34.78 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.4221, allocations: 0.5681 MB / 0.5668 GB, free: 34.52 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.4236, allocations: 0.7192 MB / 0.5675 GB, free: 34.21 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005095/0.4241, allocations: 59.53 kB / 0.5676 GB, free: 34.21 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007774/0.4249, allocations: 181 kB / 0.5677 GB, free: 34.17 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.4251, allocations: 252.4 kB / 0.568 GB, free: 34.03 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.4254, allocations: 236.3 kB / 0.5682 GB, free: 33.88 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.4265, allocations: 1.208 MB / 0.5694 GB, free: 33.52 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.4265, allocations: 0 / 0.5694 GB, free: 33.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4265, allocations: 0 / 0.5694 GB, free: 33.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.4265, allocations: 0 / 0.5694 GB, free: 33.52 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.007635/0.4341, allocations: 2.523 MB / 0.5719 GB, free: 32.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.4342, allocations: 9.312 kB / 0.5719 GB, free: 32.39 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001892/0.4344, allocations: 133.5 kB / 0.572 GB, free: 32.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004564/0.439, allocations: 0.7834 MB / 0.5728 GB, free: 32.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.4404, allocations: 0.8628 MB / 0.5736 GB, free: 31.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/0.4406, allocations: 270.3 kB / 0.5739 GB, free: 31.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.4408, allocations: 89.78 kB / 0.5739 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/0.4432, allocations: 1.449 MB / 0.5754 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.4432, allocations: 4 kB / 0.5754 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.4433, allocations: 36.48 kB / 0.5754 GB, free: 30.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.4433, allocations: 17.03 kB / 0.5754 GB, free: 30.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.4452, allocations: 1.054 MB / 0.5764 GB, free: 30.38 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.005282/0.4505, allocations: 3.971 MB / 0.5803 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007515/0.458, allocations: 3.099 MB / 0.5833 GB, free: 26.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.4582, allocations: 27.06 kB / 0.5834 GB, free: 26.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001473/0.4596, allocations: 0.7984 MB / 0.5841 GB, free: 26.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=115): time 3.807e-06/0.4597, allocations: 0 / 0.5841 GB, free: 26.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.03/0.4897, allocations: 8.641 MB / 0.5926 GB, free: 24.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.4898, allocations: 192.8 kB / 0.5928 GB, free: 24.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/0.4916, allocations: 1.076 MB / 0.5938 GB, free: 24.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002287/0.4918, allocations: 51.02 kB / 0.5939 GB, free: 24.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/0.4921, allocations: 483 kB / 0.5943 GB, free: 23.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003679/0.4925, allocations: 334.7 kB / 0.5947 GB, free: 23.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-05/0.4926, allocations: 35.16 kB / 0.5947 GB, free: 23.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4928, allocations: 373.3 kB / 0.595 GB, free: 23.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.4945, allocations: 0.8083 MB / 0.5958 GB, free: 22.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.4963, allocations: 1.154 MB / 0.597 GB, free: 22.25 MB / 426.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02428/0.5206, allocations: 6.057 MB / 0.6029 GB, free: 20.33 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/0.5207, allocations: 2.625 kB / 0.6029 GB, free: 20.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01559/0.5363, allocations: 5.216 MB / 0.608 GB, free: 19.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.5364, allocations: 71.58 kB / 0.608 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/0.5364, allocations: 10.42 kB / 0.608 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006484/0.5429, allocations: 1.847 MB / 0.6099 GB, free: 18.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.5444, allocations: 319.5 kB / 0.6102 GB, free: 18.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01867/0.5631, allocations: 9.242 MB / 0.6192 GB, free: 8.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.565, allocations: 238.7 kB / 0.6194 GB, free: 8.445 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.5652, allocations: 67.98 kB / 0.6195 GB, free: 8.379 MB / 426.7 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.0005663/0.5658, allocations: 336.4 kB / 0.6198 GB, free: 8.039 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/0.5676, allocations: 0.6924 MB / 0.6205 GB, free: 7.332 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/0.5814, allocations: 4.99 MB / 0.6253 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.5814, allocations: 16 kB / 0.6254 GB, free: 2.301 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.5814, allocations: 12 kB / 0.6254 GB, free: 2.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.6e-05/0.5815, allocations: 7.969 kB / 0.6254 GB, free: 2.281 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.01639/0.5979, allocations: 6.593 MB / 0.6318 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.5979, allocations: 3.938 kB / 0.6318 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006454/0.5986, allocations: 115.8 kB / 0.6319 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006449/0.605, allocations: 2.006 MB / 0.6339 GB, free: 9.434 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002265/0.6053, allocations: 27.98 kB / 0.6339 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02402/0.6293, allocations: 12.49 MB / 0.6461 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6294, allocations: 3.938 kB / 0.6461 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01719/0.6466, allocations: 6.073 MB / 0.652 GB, free: 6.375 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.6471, allocations: 235.2 kB / 0.6523 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.6474, allocations: 32.12 kB / 0.6523 GB, free: 6.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.6486, allocations: 143.9 kB / 0.6524 GB, free: 5.953 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005191/0.6492, allocations: 180.7 kB / 0.6526 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.407e-05/0.6493, allocations: 35.98 kB / 0.6526 GB, free: 5.738 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.6503, allocations: 0.7199 MB / 0.6533 GB, free: 5.008 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6503, allocations: 0 / 0.6533 GB, free: 5.008 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001546/0.6519, allocations: 495.6 kB / 0.6538 GB, free: 4.523 MB / 458.7 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.0172/0.6691, allocations: 6.862 MB / 0.6605 GB, free: 13.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006788/0.6759, allocations: 2.85 MB / 0.6633 GB, free: 10.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.676, allocations: 8.062 kB / 0.6633 GB, free: 10.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004239/0.6802, allocations: 1.595 MB / 0.6649 GB, free: 9.078 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.6819, allocations: 0.5757 MB / 0.6654 GB, free: 8.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00781/0.6898, allocations: 9.825 MB / 0.675 GB, free: 14.42 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.6906, allocations: 1.179 MB / 0.6762 GB, free: 13.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004892/0.6911, allocations: 120.9 kB / 0.6763 GB, free: 13.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006335/0.6917, allocations: 487.3 kB / 0.6768 GB, free: 12.61 MB / 490.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6917, allocations: 4 kB / 0.6768 GB, free: 12.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05418/0.7459, allocations: 31.75 MB / 0.7078 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/0.7461, allocations: 254.4 kB / 0.708 GB, free: 12.83 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.88/3.626, allocations: 0 / 0.708 GB, free: 12.83 MB / 0.5105 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)