Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_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/Complex 4.0.0+maint.om/package.mo): time 0.008627/0.008627, allocations: 164.4 kB / 15.13 MB, free: 5.602 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.415/1.415, allocations: 223.2 MB / 239.1 MB, free: 15.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008033, allocations: 98.73 kB / 290.3 MB, free: 4.582 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4268/0.4268, allocations: 78.61 MB / 420 MB, free: 36.36 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005196/0.0005197, allocations: 16 kB / 500 MB, free: 7.117 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1271, allocations: 69.35 MB / 0.556 GB, free: 1.703 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.00534/0.1324, allocations: 5.688 MB / 0.5616 GB, free: 11.99 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003225/0.1357, allocations: 1.815 MB / 0.5633 GB, free: 10.17 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005997/0.1363, allocations: 8 kB / 0.5633 GB, free: 10.16 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.1367, allocations: 150.9 kB / 0.5635 GB, free: 10.01 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001536/0.1382, allocations: 0.6256 MB / 0.5641 GB, free: 9.383 MB / 442.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.001244/0.1395, allocations: 0.5057 MB / 0.5646 GB, free: 8.883 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.1408, allocations: 1.234 MB / 0.5658 GB, free: 7.645 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.1412, allocations: 232 kB / 0.566 GB, free: 7.41 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006406/0.1418, allocations: 0.4977 MB / 0.5665 GB, free: 6.91 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007641/0.1426, allocations: 0.6689 MB / 0.5671 GB, free: 6.238 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1427, allocations: 60 kB / 0.5672 GB, free: 6.18 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000438/0.1432, allocations: 179.8 kB / 0.5674 GB, free: 6.004 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.1434, allocations: 234.8 kB / 0.5676 GB, free: 5.773 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.1436, allocations: 209.1 kB / 0.5678 GB, free: 5.562 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009455/0.1445, allocations: 1.087 MB / 0.5689 GB, free: 4.473 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1446, allocations: 3.938 kB / 0.5689 GB, free: 4.469 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1446, allocations: 0 / 0.5689 GB, free: 4.469 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.1446, allocations: 0 / 0.5689 GB, free: 4.469 MB / 442.7 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.00746/0.152, allocations: 2.322 MB / 0.5711 GB, free: 2.094 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.1521, allocations: 12.03 kB / 0.5711 GB, free: 2.082 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002138/0.1523, allocations: 118.5 kB / 0.5713 GB, free: 1.957 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00486/0.1572, allocations: 0.7672 MB / 0.572 GB, free: 1.188 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.1584, allocations: 0.7548 MB / 0.5727 GB, free: 384 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002956/0.1587, allocations: 268.2 kB / 0.573 GB, free: 76 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1589, allocations: 76 kB / 0.5731 GB, free: 0 / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2279/0.3869, allocations: 1.239 MB / 0.5743 GB, free: 44.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3869, allocations: 0 / 0.5743 GB, free: 44.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.569e-05/0.387, allocations: 30.83 kB / 0.5743 GB, free: 44.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.387, allocations: 17.72 kB / 0.5743 GB, free: 44.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.389, allocations: 1.019 MB / 0.5753 GB, free: 44.14 MB / 442.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.005723/0.3947, allocations: 3.615 MB / 0.5789 GB, free: 43.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008045/0.4028, allocations: 2.859 MB / 0.5816 GB, free: 42.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.4043, allocations: 0.7235 MB / 0.5823 GB, free: 42.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.4044, allocations: 19.16 kB / 0.5824 GB, free: 42.53 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.4045, allocations: 43.56 kB / 0.5824 GB, free: 42.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=92): time 4.088e-06/0.4045, allocations: 0.75 kB / 0.5824 GB, free: 42.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.03059/0.4351, allocations: 8.213 MB / 0.5904 GB, free: 41.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.215e-05/0.4352, allocations: 101.9 kB / 0.5905 GB, free: 41.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4367, allocations: 0.9551 MB / 0.5915 GB, free: 41.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002046/0.4369, allocations: 46.23 kB / 0.5915 GB, free: 41.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.4372, allocations: 455.3 kB / 0.5919 GB, free: 41.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/0.4376, allocations: 320.2 kB / 0.5922 GB, free: 41.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-05/0.4377, allocations: 28.53 kB / 0.5923 GB, free: 41.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.161e-05/0.4378, allocations: 360.5 kB / 0.5926 GB, free: 40.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.4393, allocations: 0.7525 MB / 0.5933 GB, free: 40.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.4407, allocations: 0.9785 MB / 0.5943 GB, free: 40.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.4422, allocations: 0.8302 MB / 0.5951 GB, free: 40.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.4422, allocations: 0 / 0.5951 GB, free: 40.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01341/0.4556, allocations: 4.923 MB / 0.5999 GB, free: 38.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.4557, allocations: 9.781 kB / 0.5999 GB, free: 38.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.4557, allocations: 10.34 kB / 0.5999 GB, free: 38.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005949/0.4617, allocations: 1.869 MB / 0.6018 GB, free: 38.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.4628, allocations: 262.4 kB / 0.602 GB, free: 38.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.4814, allocations: 8.768 MB / 0.6106 GB, free: 34.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.4831, allocations: 204.1 kB / 0.6108 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.4832, allocations: 54.39 kB / 0.6108 GB, free: 34.84 MB / 442.7 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.0004497/0.4837, allocations: 267.2 kB / 0.6111 GB, free: 34.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009978/0.4847, allocations: 356.2 kB / 0.6114 GB, free: 34.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/0.4975, allocations: 4.412 MB / 0.6157 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.4976, allocations: 10.41 kB / 0.6157 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.4976, allocations: 7 kB / 0.6157 GB, free: 33.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.4976, allocations: 8.547 kB / 0.6158 GB, free: 33.55 MB / 442.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.01596/0.5136, allocations: 5.973 MB / 0.6216 GB, free: 31.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.5136, allocations: 2.156 kB / 0.6216 GB, free: 31.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.5142, allocations: 115.1 kB / 0.6217 GB, free: 31.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006103/0.5203, allocations: 1.864 MB / 0.6235 GB, free: 31.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-05/0.5205, allocations: 24.39 kB / 0.6235 GB, free: 31.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/0.5382, allocations: 10.8 MB / 0.6341 GB, free: 23.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5382, allocations: 0 / 0.6341 GB, free: 23.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/0.5526, allocations: 5.515 MB / 0.6395 GB, free: 18.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.553, allocations: 222.6 kB / 0.6397 GB, free: 18.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.5532, allocations: 23.98 kB / 0.6397 GB, free: 18.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009836/0.5542, allocations: 117.6 kB / 0.6398 GB, free: 18.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004508/0.5546, allocations: 168.7 kB / 0.64 GB, free: 17.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.258e-05/0.5547, allocations: 31.98 kB / 0.64 GB, free: 17.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006889/0.5554, allocations: 0.6356 MB / 0.6406 GB, free: 17.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5554, allocations: 0 / 0.6406 GB, free: 17.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001215/0.5566, allocations: 438.1 kB / 0.6411 GB, free: 16.76 MB / 442.7 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.01428/0.5709, allocations: 6.111 MB / 0.647 GB, free: 10.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005716/0.5767, allocations: 2.585 MB / 0.6495 GB, free: 8.027 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5767, allocations: 1.375 kB / 0.6495 GB, free: 8.027 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003786/0.5805, allocations: 1.531 MB / 0.651 GB, free: 6.488 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.5818, allocations: 373.3 kB / 0.6514 GB, free: 6.109 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.6042, allocations: 11.18 MB / 0.6623 GB, free: 10.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000554/0.6048, allocations: 1.084 MB / 0.6634 GB, free: 9.496 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000378/0.6052, allocations: 103.2 kB / 0.6635 GB, free: 9.395 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.6057, allocations: 431.3 kB / 0.6639 GB, free: 8.973 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6057, allocations: 4 kB / 0.6639 GB, free: 8.969 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04527/0.651, allocations: 29.15 MB / 0.6924 GB, free: 12.21 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.6512, allocations: 247.7 kB / 0.6926 GB, free: 11.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.884/3.535, allocations: 4 kB / 0.6926 GB, free: 11.89 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)