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.005913/0.005913, allocations: 172.1 kB / 15.12 MB, free: 6.027 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.452/1.452, allocations: 223.2 MB / 239 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008856/0.0008855, allocations: 100.1 kB / 290.2 MB, free: 4.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5481/0.5481, allocations: 78.58 MB / 419.9 MB, free: 36.47 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.0004275, allocations: 12 kB / 499.9 MB, free: 7.141 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1867, allocations: 69.36 MB / 0.5559 GB, free: 1.715 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.008113/0.1948, allocations: 5.42 MB / 0.5612 GB, free: 12.27 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.005217/0.2001, allocations: 1.854 MB / 0.563 GB, free: 10.41 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008636/0.201, allocations: 11.94 kB / 0.563 GB, free: 10.4 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004597/0.2015, allocations: 138.9 kB / 0.5631 GB, free: 10.26 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001889/0.2034, allocations: 0.6787 MB / 0.5638 GB, free: 9.586 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.001271/0.2046, allocations: 0.5021 MB / 0.5643 GB, free: 9.086 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001647/0.2063, allocations: 0.8931 MB / 0.5651 GB, free: 8.191 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004026/0.2067, allocations: 228 kB / 0.5654 GB, free: 7.961 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000734/0.2075, allocations: 0.4902 MB / 0.5658 GB, free: 7.469 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007849/0.2083, allocations: 0.6652 MB / 0.5665 GB, free: 6.801 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.2084, allocations: 56 kB / 0.5665 GB, free: 6.746 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000439/0.2089, allocations: 167.8 kB / 0.5667 GB, free: 6.582 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.2091, allocations: 227 kB / 0.5669 GB, free: 6.359 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.2093, allocations: 213 kB / 0.5671 GB, free: 6.145 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.2105, allocations: 1.052 MB / 0.5682 GB, free: 5.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2105, allocations: 4 kB / 0.5682 GB, free: 5.086 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2105, allocations: 0 / 0.5682 GB, free: 5.086 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.2105, allocations: 0 / 0.5682 GB, free: 5.086 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.008369/0.2189, allocations: 2.306 MB / 0.5704 GB, free: 2.727 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/0.219, allocations: 12.03 kB / 0.5704 GB, free: 2.715 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002775/0.2193, allocations: 122.5 kB / 0.5705 GB, free: 2.586 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004712/0.224, allocations: 0.7672 MB / 0.5713 GB, free: 1.816 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2251, allocations: 0.7587 MB / 0.572 GB, free: 1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/0.2254, allocations: 268.2 kB / 0.5723 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.2256, allocations: 79.94 kB / 0.5724 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2611/0.4867, allocations: 1.232 MB / 0.5736 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.4868, allocations: 2.594 kB / 0.5736 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.4869, allocations: 29.44 kB / 0.5736 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.359e-05/0.487, allocations: 17.53 kB / 0.5736 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002207/0.4892, allocations: 1.014 MB / 0.5746 GB, free: 43.82 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.00571/0.4949, allocations: 3.824 MB / 0.5783 GB, free: 42.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007754/0.5027, allocations: 2.865 MB / 0.5811 GB, free: 42.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/0.5028, allocations: 22.06 kB / 0.5812 GB, free: 42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.5029, allocations: 42.59 kB / 0.5812 GB, free: 41.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=92): time 2.715e-06/0.5029, allocations: 0 / 0.5812 GB, free: 41.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.02897/0.5319, allocations: 8.205 MB / 0.5892 GB, free: 41.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/0.532, allocations: 106.8 kB / 0.5893 GB, free: 41.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.5333, allocations: 0.9553 MB / 0.5902 GB, free: 41.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.5334, allocations: 44.48 kB / 0.5903 GB, free: 41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.5337, allocations: 458.1 kB / 0.5907 GB, free: 40.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.534, allocations: 313.6 kB / 0.591 GB, free: 40.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.845e-05/0.534, allocations: 28.66 kB / 0.591 GB, free: 40.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.5341, allocations: 356.4 kB / 0.5914 GB, free: 40.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/0.5357, allocations: 0.7544 MB / 0.5921 GB, free: 40.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.5373, allocations: 0.9739 MB / 0.5931 GB, free: 40.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.5389, allocations: 0.8375 MB / 0.5939 GB, free: 40.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.5389, allocations: 2.969 kB / 0.5939 GB, free: 40.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01317/0.5521, allocations: 4.915 MB / 0.5987 GB, free: 38.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.5522, allocations: 16.31 kB / 0.5987 GB, free: 38.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.5522, allocations: 7.906 kB / 0.5987 GB, free: 38.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00585/0.558, allocations: 1.869 MB / 0.6005 GB, free: 38.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.5593, allocations: 259.1 kB / 0.6008 GB, free: 38.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/0.5789, allocations: 9.183 MB / 0.6098 GB, free: 34.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.5806, allocations: 202.7 kB / 0.6099 GB, free: 34.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.5807, allocations: 56.19 kB / 0.61 GB, free: 34.71 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.0004566/0.5812, allocations: 270.6 kB / 0.6103 GB, free: 34.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009306/0.5821, allocations: 352.3 kB / 0.6106 GB, free: 34.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/0.5949, allocations: 4.412 MB / 0.6149 GB, free: 33.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.622e-05/0.5949, allocations: 9.719 kB / 0.6149 GB, free: 33.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.5949, allocations: 7.938 kB / 0.6149 GB, free: 33.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.595, allocations: 8.453 kB / 0.6149 GB, free: 33.43 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.01583/0.6108, allocations: 6.024 MB / 0.6208 GB, free: 31.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.6108, allocations: 4.812 kB / 0.6208 GB, free: 31.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006414/0.6115, allocations: 108 kB / 0.6209 GB, free: 31.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005952/0.6174, allocations: 1.869 MB / 0.6227 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.6176, allocations: 23.33 kB / 0.6228 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01864/0.6362, allocations: 11.21 MB / 0.6337 GB, free: 24.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.6363, allocations: 0 / 0.6337 GB, free: 24.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/0.6505, allocations: 5.532 MB / 0.6391 GB, free: 18.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006987/0.6513, allocations: 220.7 kB / 0.6393 GB, free: 18.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.6515, allocations: 20 kB / 0.6393 GB, free: 18.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6526, allocations: 119.9 kB / 0.6395 GB, free: 18.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005775/0.6532, allocations: 168.7 kB / 0.6396 GB, free: 18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.139e-05/0.6532, allocations: 27.98 kB / 0.6396 GB, free: 17.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007443/0.654, allocations: 0.6428 MB / 0.6403 GB, free: 17.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.654, allocations: 0 / 0.6403 GB, free: 17.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001446/0.6555, allocations: 438.8 kB / 0.6407 GB, free: 16.89 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.01442/0.6699, allocations: 6.176 MB / 0.6467 GB, free: 10.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00589/0.6758, allocations: 2.588 MB / 0.6493 GB, free: 8.082 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.6758, allocations: 4.062 kB / 0.6493 GB, free: 8.078 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003868/0.6797, allocations: 1.528 MB / 0.6507 GB, free: 6.539 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.681, allocations: 359.4 kB / 0.6511 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004563/0.6856, allocations: 6.347 MB / 0.6573 GB, free: 15.74 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005948/0.6862, allocations: 1.1 MB / 0.6584 GB, free: 14.61 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003487/0.6866, allocations: 97.27 kB / 0.6585 GB, free: 14.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005794/0.6872, allocations: 431.3 kB / 0.6589 GB, free: 14.09 MB / 458.7 MB Notification: Performance of SimCode: time 6.62e-07/0.6872, allocations: 3.938 kB / 0.6589 GB, free: 14.08 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04919/0.7364, allocations: 28.46 MB / 0.6867 GB, free: 2.02 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.7366, allocations: 242.3 kB / 0.6869 GB, free: 1.777 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.866/3.602, allocations: 2.656 kB / 0.6869 GB, free: 1.777 MB / 474.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)