Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_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.00118/0.00118, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.428/1.428, allocations: 222.9 MB / 238.9 MB, free: 4.762 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.001396/0.001395, allocations: 188.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5739/0.5739, allocations: 91.89 MB / 431.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 83.86 kB / 0.5013 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4149, allocations: 71.26 MB / 0.5709 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006229/0.4212, allocations: 6.883 MB / 0.5776 GB, free: 32.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00438/0.4256, allocations: 2.008 MB / 0.5796 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009566/0.4266, allocations: 15.25 kB / 0.5796 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006415/0.4273, allocations: 181.9 kB / 0.5798 GB, free: 31.09 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.4291, allocations: 0.7108 MB / 0.5805 GB, free: 30.63 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.4302, allocations: 0.6005 MB / 0.5811 GB, free: 30.31 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.4316, allocations: 1.499 MB / 0.5825 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.432, allocations: 296.2 kB / 0.5828 GB, free: 29.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007128/0.4327, allocations: 0.5851 MB / 0.5834 GB, free: 29.19 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006367/0.4334, allocations: 0.7809 MB / 0.5841 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.4335, allocations: 71.78 kB / 0.5842 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000464/0.434, allocations: 204.3 kB / 0.5844 GB, free: 28.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.4342, allocations: 278.1 kB / 0.5847 GB, free: 28.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004666/0.4347, allocations: 0.6219 MB / 0.5853 GB, free: 28.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001194/0.4359, allocations: 1.588 MB / 0.5868 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4359, allocations: 4 kB / 0.5868 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.4359, allocations: 5.25 kB / 0.5868 GB, free: 27.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.4359, allocations: 0 / 0.5868 GB, free: 27.52 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008685/0.4446, allocations: 2.686 MB / 0.5895 GB, free: 26.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4447, allocations: 10.12 kB / 0.5895 GB, free: 26.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.4448, allocations: 129.8 kB / 0.5896 GB, free: 26.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005002/0.4498, allocations: 0.7685 MB / 0.5903 GB, free: 26 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.4514, allocations: 0.881 MB / 0.5912 GB, free: 25.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.4516, allocations: 262.1 kB / 0.5915 GB, free: 25.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.4518, allocations: 89.98 kB / 0.5915 GB, free: 25.15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/0.4539, allocations: 1.083 MB / 0.5926 GB, free: 24.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.4539, allocations: 0 / 0.5926 GB, free: 24.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.911e-05/0.454, allocations: 34.16 kB / 0.5926 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.4541, allocations: 18.44 kB / 0.5926 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001959/0.456, allocations: 0.9841 MB / 0.5936 GB, free: 24.38 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.00715/0.4632, allocations: 3.849 MB / 0.5974 GB, free: 22.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007447/0.4706, allocations: 2.371 MB / 0.5997 GB, free: 21.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4721, allocations: 0.6862 MB / 0.6004 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.4722, allocations: 16.88 kB / 0.6004 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001751/0.474, allocations: 0.8199 MB / 0.6012 GB, free: 20.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.417e-06/0.474, allocations: 3.938 kB / 0.6012 GB, free: 20.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02952/0.5035, allocations: 7.081 MB / 0.6081 GB, free: 19.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.5036, allocations: 118.7 kB / 0.6082 GB, free: 19.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/0.5056, allocations: 1.082 MB / 0.6093 GB, free: 18.78 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002608/0.5059, allocations: 46.8 kB / 0.6093 GB, free: 18.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/0.5063, allocations: 497.8 kB / 0.6098 GB, free: 18.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003697/0.5066, allocations: 353.3 kB / 0.6101 GB, free: 18.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005451/0.5072, allocations: 290.6 kB / 0.6104 GB, free: 17.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.5072, allocations: 301.6 kB / 0.6107 GB, free: 17.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/0.5089, allocations: 0.7673 MB / 0.6114 GB, free: 17.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.5106, allocations: 0.9346 MB / 0.6123 GB, free: 16.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02301/0.5336, allocations: 5.572 MB / 0.6178 GB, free: 14.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.5337, allocations: 4 kB / 0.6178 GB, free: 14.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01198/0.5457, allocations: 4.329 MB / 0.622 GB, free: 9.844 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.832e-05/0.5457, allocations: 65.75 kB / 0.6221 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.5458, allocations: 4 kB / 0.6221 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004801/0.5506, allocations: 1.509 MB / 0.6236 GB, free: 8.254 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/0.552, allocations: 307.5 kB / 0.6238 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.5676, allocations: 7.613 MB / 0.6313 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.5697, allocations: 206.8 kB / 0.6315 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.5698, allocations: 51.98 kB / 0.6315 GB, free: 15.94 MB / 446.1 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.0006742/0.5705, allocations: 304.3 kB / 0.6318 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.5707, allocations: 126.4 kB / 0.6319 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/0.5833, allocations: 3.869 MB / 0.6357 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.5834, allocations: 8 kB / 0.6357 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.5834, allocations: 11.94 kB / 0.6357 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-05/0.5834, allocations: 7.969 kB / 0.6357 GB, free: 11.57 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.01484/0.5983, allocations: 5.457 MB / 0.6411 GB, free: 6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.5983, allocations: 4.031 kB / 0.6411 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000611/0.5989, allocations: 107.8 kB / 0.6412 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005473/0.6044, allocations: 1.594 MB / 0.6427 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/0.6046, allocations: 16 kB / 0.6428 GB, free: 4.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01878/0.6233, allocations: 8.787 MB / 0.6513 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.6234, allocations: 240 / 0.6513 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.6379, allocations: 4.744 MB / 0.656 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005784/0.6385, allocations: 219.2 kB / 0.6562 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/0.6387, allocations: 24 kB / 0.6562 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.6398, allocations: 111.8 kB / 0.6563 GB, free: 6.062 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006098/0.6405, allocations: 188.7 kB / 0.6565 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.3e-05/0.6406, allocations: 28 kB / 0.6565 GB, free: 5.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.6416, allocations: 0.7274 MB / 0.6572 GB, free: 5.113 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6416, allocations: 4 kB / 0.6572 GB, free: 5.109 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00138/0.643, allocations: 475.5 kB / 0.6577 GB, free: 4.645 MB / 462.1 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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01496/0.658, allocations: 5.308 MB / 0.6629 GB, free: 15.29 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006289/0.6643, allocations: 2.505 MB / 0.6653 GB, free: 12.74 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6644, allocations: 0 / 0.6653 GB, free: 12.74 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004281/0.6686, allocations: 1.598 MB / 0.6669 GB, free: 11.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.6698, allocations: 116.6 kB / 0.667 GB, free: 10.99 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0398/0.7096, allocations: 17.13 MB / 0.6837 GB, free: 9.414 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.7103, allocations: 1.136 MB / 0.6848 GB, free: 8.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005591/0.7109, allocations: 116.1 kB / 0.6849 GB, free: 8.133 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/0.7115, allocations: 467.3 kB / 0.6854 GB, free: 7.676 MB / 494.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7115, allocations: 0 / 0.6854 GB, free: 7.676 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9701/1.682, allocations: 31.65 MB / 0.7163 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002447/1.682, allocations: 252.9 kB / 0.7165 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.952/4.634, allocations: 0 / 0.7165 GB, free: 7.977 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)