Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.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.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 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.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",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.001367/0.001367, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.356/1.356, allocations: 222.9 MB / 239 MB, free: 4.715 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.001506/0.001506, allocations: 184.5 kB / 289.3 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5373/0.5373, allocations: 91.89 MB / 431.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 75.88 kB / 0.5015 GB, free: 7.973 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4337/0.4351, allocations: 71.26 MB / 0.5711 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006766/0.4419, allocations: 7.026 MB / 0.578 GB, free: 32.03 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00419/0.4461, allocations: 2.051 MB / 0.58 GB, free: 30.93 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.4475, allocations: 15.78 kB / 0.58 GB, free: 30.92 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009715/0.4485, allocations: 180.1 kB / 0.5801 GB, free: 30.85 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.451, allocations: 0.7289 MB / 0.5809 GB, free: 30.38 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.4524, allocations: 0.5961 MB / 0.5814 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002007/0.4544, allocations: 1.664 MB / 0.5831 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005283/0.4549, allocations: 329.8 kB / 0.5834 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000973/0.4559, allocations: 0.6875 MB / 0.584 GB, free: 28.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007488/0.4567, allocations: 0.8759 MB / 0.5849 GB, free: 28.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001728/0.4569, allocations: 133.3 kB / 0.585 GB, free: 28.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004898/0.4574, allocations: 279.8 kB / 0.5853 GB, free: 28.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002402/0.4576, allocations: 344.6 kB / 0.5856 GB, free: 28.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000497/0.4581, allocations: 0.7015 MB / 0.5863 GB, free: 27.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.4596, allocations: 1.712 MB / 0.588 GB, free: 26.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4596, allocations: 0 / 0.588 GB, free: 26.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4596, allocations: 0 / 0.588 GB, free: 26.85 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.4597, allocations: 1.281 kB / 0.588 GB, free: 26.85 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.008887/0.4685, allocations: 2.788 MB / 0.5907 GB, free: 25.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4686, allocations: 9.031 kB / 0.5907 GB, free: 25.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.4688, allocations: 128.7 kB / 0.5908 GB, free: 25.46 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004886/0.4737, allocations: 0.7772 MB / 0.5916 GB, free: 25.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.4751, allocations: 0.9138 MB / 0.5925 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.4754, allocations: 263.1 kB / 0.5927 GB, free: 24.47 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.4755, allocations: 90.59 kB / 0.5928 GB, free: 24.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.4776, allocations: 1.108 MB / 0.5939 GB, free: 24.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.4777, allocations: 3.984 kB / 0.5939 GB, free: 24.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.183e-05/0.4777, allocations: 31.12 kB / 0.5939 GB, free: 23.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4778, allocations: 17.91 kB / 0.594 GB, free: 23.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.4798, allocations: 1.006 MB / 0.5949 GB, free: 23.64 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.006518/0.4863, allocations: 3.921 MB / 0.5988 GB, free: 21.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007783/0.4941, allocations: 2.41 MB / 0.6011 GB, free: 20.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.4956, allocations: 0.6882 MB / 0.6018 GB, free: 20.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001227/0.4958, allocations: 16.92 kB / 0.6018 GB, free: 20.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00175/0.4975, allocations: 0.8513 MB / 0.6026 GB, free: 19.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 2.745e-06/0.4976, allocations: 0 / 0.6026 GB, free: 19.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02914/0.5267, allocations: 7.078 MB / 0.6096 GB, free: 18.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.5268, allocations: 119.3 kB / 0.6097 GB, free: 18.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.5291, allocations: 1.137 MB / 0.6108 GB, free: 17.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000266/0.5293, allocations: 46.64 kB / 0.6108 GB, free: 17.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003768/0.5297, allocations: 0.4965 MB / 0.6113 GB, free: 17.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.5301, allocations: 367.6 kB / 0.6117 GB, free: 17.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005631/0.5307, allocations: 299.1 kB / 0.6119 GB, free: 17.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.211e-05/0.5308, allocations: 303.1 kB / 0.6122 GB, free: 16.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.5325, allocations: 0.7973 MB / 0.613 GB, free: 16.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.5343, allocations: 0.9686 MB / 0.614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02501/0.5593, allocations: 5.949 MB / 0.6198 GB, free: 12.24 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.648e-05/0.5594, allocations: 0 / 0.6198 GB, free: 12.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01287/0.5723, allocations: 4.516 MB / 0.6242 GB, free: 7.695 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.5724, allocations: 63.41 kB / 0.6242 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.5724, allocations: 4 kB / 0.6242 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005767/0.5782, allocations: 1.662 MB / 0.6259 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.5798, allocations: 303.5 kB / 0.6262 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/0.5983, allocations: 8.618 MB / 0.6346 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/0.6007, allocations: 214.5 kB / 0.6348 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.6009, allocations: 59.97 kB / 0.6348 GB, free: 12.61 MB / 446.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006755/0.6016, allocations: 303.6 kB / 0.6351 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.6018, allocations: 126.4 kB / 0.6352 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/0.6144, allocations: 3.924 MB / 0.6391 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.6145, allocations: 11.98 kB / 0.6391 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.6145, allocations: 8 kB / 0.6391 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.409e-05/0.6146, allocations: 7.969 kB / 0.6391 GB, free: 8.199 MB / 446.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.0151/0.6297, allocations: 5.548 MB / 0.6445 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.6297, allocations: 0 / 0.6445 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007957/0.6305, allocations: 111.8 kB / 0.6446 GB, free: 2.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005397/0.6359, allocations: 1.599 MB / 0.6462 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/0.6362, allocations: 16 kB / 0.6462 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01994/0.6562, allocations: 9.642 MB / 0.6556 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6562, allocations: 0 / 0.6556 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/0.6708, allocations: 4.811 MB / 0.6603 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007821/0.6716, allocations: 231.2 kB / 0.6605 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.6718, allocations: 16 kB / 0.6605 GB, free: 1.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.6732, allocations: 111.9 kB / 0.6607 GB, free: 1.656 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007501/0.674, allocations: 196.7 kB / 0.6608 GB, free: 1.465 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-05/0.6741, allocations: 28 kB / 0.6609 GB, free: 1.438 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.6753, allocations: 0.7712 MB / 0.6616 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6753, allocations: 0 / 0.6616 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001785/0.6771, allocations: 491.5 kB / 0.6621 GB, free: 184 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01495/0.6921, allocations: 5.391 MB / 0.6674 GB, free: 10.74 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007282/0.6994, allocations: 2.663 MB / 0.67 GB, free: 8.035 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6994, allocations: 0 / 0.67 GB, free: 8.035 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004367/0.7038, allocations: 1.623 MB / 0.6715 GB, free: 6.379 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.7051, allocations: 108.5 kB / 0.6716 GB, free: 6.273 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.041/0.7461, allocations: 17.98 MB / 0.6892 GB, free: 3.84 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006436/0.7468, allocations: 1.136 MB / 0.6903 GB, free: 2.672 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006499/0.7475, allocations: 120.3 kB / 0.6904 GB, free: 2.551 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006318/0.7481, allocations: 491.3 kB / 0.6909 GB, free: 2.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7481, allocations: 3.938 kB / 0.6909 GB, free: 2.066 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06009/0.8082, allocations: 34.34 MB / 0.7244 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.8084, allocations: 238 kB / 0.7247 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.061/3.87, allocations: 0 / 0.7247 GB, free: 15.7 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)