Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_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_Continuous,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_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.001012/0.001012, allocations: 176 kB / 15.42 MB, free: 6.152 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.381/1.381, allocations: 222.8 MB / 239 MB, free: 1.641 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.0007949/0.0007948, allocations: 101.7 kB / 289.8 MB, free: 14.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4673/0.4673, allocations: 78.43 MB / 418.9 MB, free: 44.16 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 16 kB / 498.5 MB, free: 3.789 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3166, allocations: 68.74 MB / 0.554 GB, free: 39.74 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006184/0.3228, allocations: 6.87 MB / 0.5607 GB, free: 37.02 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004053/0.3269, allocations: 2.003 MB / 0.5626 GB, free: 36.23 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009386/0.3278, allocations: 11.53 kB / 0.5626 GB, free: 36.23 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007122/0.3286, allocations: 191.7 kB / 0.5628 GB, free: 36.16 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.3305, allocations: 0.7104 MB / 0.5635 GB, free: 35.85 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.001298/0.3318, allocations: 0.5967 MB / 0.5641 GB, free: 35.72 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001788/0.3336, allocations: 1.496 MB / 0.5656 GB, free: 35.38 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004733/0.334, allocations: 291.5 kB / 0.5658 GB, free: 35.3 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007794/0.3348, allocations: 0.5646 MB / 0.5664 GB, free: 35.09 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.3355, allocations: 0.7468 MB / 0.5671 GB, free: 34.76 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.3357, allocations: 58.91 kB / 0.5672 GB, free: 34.76 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.3362, allocations: 194 kB / 0.5674 GB, free: 34.71 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.3364, allocations: 261.4 kB / 0.5676 GB, free: 34.56 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004144/0.3368, allocations: 0.5999 MB / 0.5682 GB, free: 34.17 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.3379, allocations: 1.549 MB / 0.5697 GB, free: 33.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3379, allocations: 4 kB / 0.5697 GB, free: 33.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3379, allocations: 0 / 0.5697 GB, free: 33.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.3379, allocations: 0 / 0.5697 GB, free: 33.6 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007431/0.3453, allocations: 2.425 MB / 0.5721 GB, free: 32.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3454, allocations: 12.09 kB / 0.5721 GB, free: 32.48 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.3456, allocations: 129.1 kB / 0.5722 GB, free: 32.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004754/0.3503, allocations: 0.7669 MB / 0.573 GB, free: 32.24 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.3517, allocations: 0.8817 MB / 0.5738 GB, free: 31.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.3519, allocations: 266.6 kB / 0.5741 GB, free: 31.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.352, allocations: 86.91 kB / 0.5742 GB, free: 31.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.3538, allocations: 1.089 MB / 0.5752 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3538, allocations: 0 / 0.5752 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.319e-05/0.3539, allocations: 34.55 kB / 0.5753 GB, free: 30.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.3539, allocations: 17.47 kB / 0.5753 GB, free: 30.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.3556, allocations: 0.9878 MB / 0.5762 GB, free: 30.61 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.005374/0.361, allocations: 3.828 MB / 0.58 GB, free: 28.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006312/0.3673, allocations: 2.364 MB / 0.5823 GB, free: 27.58 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.3685, allocations: 0.6791 MB / 0.5829 GB, free: 27.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.3687, allocations: 16.58 kB / 0.583 GB, free: 27.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/0.37, allocations: 0.8244 MB / 0.5838 GB, free: 26.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.484e-06/0.37, allocations: 0 / 0.5838 GB, free: 26.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02476/0.3948, allocations: 7.084 MB / 0.5907 GB, free: 25.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.3948, allocations: 116.8 kB / 0.5908 GB, free: 25.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.3963, allocations: 1.08 MB / 0.5919 GB, free: 25.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.3964, allocations: 42.98 kB / 0.5919 GB, free: 24.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.3967, allocations: 498 kB / 0.5924 GB, free: 24.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.397, allocations: 357.5 kB / 0.5927 GB, free: 24.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.3972, allocations: 148.8 kB / 0.5929 GB, free: 24.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.3973, allocations: 306.9 kB / 0.5931 GB, free: 23.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.3989, allocations: 0.7638 MB / 0.5939 GB, free: 23.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.4004, allocations: 0.9304 MB / 0.5948 GB, free: 23.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02168/0.4221, allocations: 5.581 MB / 0.6003 GB, free: 21.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4222, allocations: 0 / 0.6003 GB, free: 21.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01269/0.4349, allocations: 4.344 MB / 0.6045 GB, free: 19.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/0.435, allocations: 62.83 kB / 0.6046 GB, free: 19.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.435, allocations: 3.062 kB / 0.6046 GB, free: 19.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004977/0.44, allocations: 1.501 MB / 0.606 GB, free: 19.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.4414, allocations: 300.6 kB / 0.6063 GB, free: 19.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/0.4571, allocations: 7.632 MB / 0.6138 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.4588, allocations: 198.8 kB / 0.614 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.459, allocations: 55.97 kB / 0.614 GB, free: 13.59 MB / 426.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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005215/0.4595, allocations: 307.1 kB / 0.6143 GB, free: 13.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.4597, allocations: 126.4 kB / 0.6144 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/0.4709, allocations: 3.869 MB / 0.6182 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.471, allocations: 12 kB / 0.6182 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.471, allocations: 11.88 kB / 0.6182 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.471, allocations: 7.984 kB / 0.6182 GB, free: 9.223 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.01222/0.4832, allocations: 5.45 MB / 0.6235 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4833, allocations: 0 / 0.6235 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005357/0.4838, allocations: 103.8 kB / 0.6236 GB, free: 3.562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004802/0.4886, allocations: 1.614 MB / 0.6252 GB, free: 1.941 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.4888, allocations: 20 kB / 0.6252 GB, free: 1.922 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01737/0.5061, allocations: 8.755 MB / 0.6338 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.5062, allocations: 3.984 kB / 0.6338 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01342/0.5196, allocations: 4.733 MB / 0.6384 GB, free: 4.113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.5201, allocations: 223.2 kB / 0.6386 GB, free: 3.875 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002482/0.5203, allocations: 20 kB / 0.6386 GB, free: 3.855 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5215, allocations: 107.9 kB / 0.6388 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005613/0.5221, allocations: 184.7 kB / 0.6389 GB, free: 3.566 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.597e-05/0.5222, allocations: 31.98 kB / 0.639 GB, free: 3.535 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001139/0.5233, allocations: 0.7274 MB / 0.6397 GB, free: 2.801 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5233, allocations: 4 kB / 0.6397 GB, free: 2.797 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001526/0.5248, allocations: 471.5 kB / 0.6401 GB, free: 2.336 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01378/0.5386, allocations: 5.34 MB / 0.6453 GB, free: 12.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005856/0.5445, allocations: 2.493 MB / 0.6478 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5445, allocations: 0 / 0.6478 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004047/0.5486, allocations: 1.603 MB / 0.6493 GB, free: 8.785 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009993/0.5496, allocations: 117.1 kB / 0.6494 GB, free: 8.668 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03631/0.5859, allocations: 17.14 MB / 0.6662 GB, free: 7.09 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000617/0.5866, allocations: 1.128 MB / 0.6673 GB, free: 5.934 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.5872, allocations: 120 kB / 0.6674 GB, free: 5.812 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005689/0.5877, allocations: 467.3 kB / 0.6678 GB, free: 5.355 MB / 474.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5877, allocations: 0 / 0.6678 GB, free: 5.355 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.6333, allocations: 31.12 MB / 0.6982 GB, free: 6.516 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.6335, allocations: 276 kB / 0.6985 GB, free: 6.148 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.816/3.449, allocations: 1.969 kB / 0.6985 GB, free: 6.148 MB / 0.4949 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)