Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.0009518/0.0009518, allocations: 177.3 kB / 15.42 MB, free: 6.215 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.284/1.284, allocations: 222.8 MB / 239 MB, free: 128 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.0007065/0.0007065, allocations: 103.8 kB / 289.8 MB, free: 4.539 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.306/0.306, allocations: 78.44 MB / 418.9 MB, free: 88 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003539, allocations: 12.56 kB / 498.5 MB, free: 35.38 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2998, allocations: 68.73 MB / 0.554 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006137/0.306, allocations: 6.866 MB / 0.5607 GB, free: 5.891 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003499/0.3095, allocations: 2.011 MB / 0.5626 GB, free: 4.453 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.3102, allocations: 15.47 kB / 0.5626 GB, free: 4.449 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005929/0.3108, allocations: 184.1 kB / 0.5628 GB, free: 4.375 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00165/0.3125, allocations: 0.7074 MB / 0.5635 GB, free: 3.918 MB / 378.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.001164/0.3136, allocations: 0.5992 MB / 0.5641 GB, free: 3.586 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.315, allocations: 1.498 MB / 0.5656 GB, free: 2.863 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003812/0.3154, allocations: 292.2 kB / 0.5658 GB, free: 2.719 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007148/0.3161, allocations: 0.568 MB / 0.5664 GB, free: 2.461 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000786/0.3169, allocations: 0.7497 MB / 0.5671 GB, free: 2.125 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000146/0.3171, allocations: 60.16 kB / 0.5672 GB, free: 2.125 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004954/0.3176, allocations: 185.8 kB / 0.5674 GB, free: 2.086 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.3178, allocations: 260.4 kB / 0.5676 GB, free: 1.938 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.3183, allocations: 0.6003 MB / 0.5682 GB, free: 1.547 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.3199, allocations: 1.555 MB / 0.5697 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3199, allocations: 0 / 0.5697 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3199, allocations: 0.5156 kB / 0.5697 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.3199, allocations: 1.156 kB / 0.5697 GB, free: 0.9688 MB / 378.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.008348/0.3283, allocations: 2.426 MB / 0.5721 GB, free: 15.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3283, allocations: 9.953 kB / 0.5721 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003776/0.3287, allocations: 126.3 kB / 0.5722 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005265/0.334, allocations: 0.7758 MB / 0.573 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.3359, allocations: 0.8795 MB / 0.5738 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002753/0.3362, allocations: 257.3 kB / 0.5741 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.3363, allocations: 87.06 kB / 0.5742 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.3387, allocations: 1.087 MB / 0.5752 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3387, allocations: 12.97 kB / 0.5752 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.363e-05/0.3388, allocations: 30.56 kB / 0.5753 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.3388, allocations: 18.86 kB / 0.5753 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.3409, allocations: 0.9886 MB / 0.5762 GB, free: 13.91 MB / 394.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.006765/0.3477, allocations: 3.815 MB / 0.58 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007206/0.3549, allocations: 2.371 MB / 0.5823 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/0.3566, allocations: 0.6796 MB / 0.5829 GB, free: 9.227 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.3568, allocations: 19.16 kB / 0.583 GB, free: 9.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.3584, allocations: 0.8199 MB / 0.5838 GB, free: 8.719 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.464e-06/0.3584, allocations: 0 / 0.5838 GB, free: 8.719 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02789/0.3863, allocations: 7.073 MB / 0.5907 GB, free: 5.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.3864, allocations: 125.5 kB / 0.5908 GB, free: 4.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/0.3881, allocations: 1.083 MB / 0.5919 GB, free: 4.098 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002581/0.3884, allocations: 49.64 kB / 0.5919 GB, free: 4.043 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.3887, allocations: 0.4891 MB / 0.5924 GB, free: 3.547 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003706/0.3891, allocations: 359 kB / 0.5927 GB, free: 3.191 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001957/0.3893, allocations: 141.6 kB / 0.5929 GB, free: 3.047 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.3894, allocations: 305.1 kB / 0.5931 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.391, allocations: 0.7652 MB / 0.5939 GB, free: 1.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.3926, allocations: 0.9343 MB / 0.5948 GB, free: 1.008 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02209/0.4147, allocations: 5.59 MB / 0.6003 GB, free: 11.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.4147, allocations: 0 / 0.6003 GB, free: 11.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01318/0.4279, allocations: 4.328 MB / 0.6045 GB, free: 6.977 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.7e-05/0.428, allocations: 71.33 kB / 0.6046 GB, free: 6.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.428, allocations: 4 kB / 0.6046 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005183/0.4332, allocations: 1.504 MB / 0.606 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.4348, allocations: 295.6 kB / 0.6063 GB, free: 5.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01725/0.452, allocations: 7.625 MB / 0.6138 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.4541, allocations: 194.8 kB / 0.6139 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.4544, allocations: 55.97 kB / 0.614 GB, free: 13.08 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.0008163/0.4552, allocations: 308.3 kB / 0.6143 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.4556, allocations: 126.4 kB / 0.6144 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.4682, allocations: 3.869 MB / 0.6182 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.4683, allocations: 12 kB / 0.6182 GB, free: 8.723 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.126e-05/0.4683, allocations: 15.94 kB / 0.6182 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/0.4683, allocations: 3.984 kB / 0.6182 GB, free: 8.703 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.01481/0.4831, allocations: 5.446 MB / 0.6235 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4832, allocations: 0 / 0.6235 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006167/0.4838, allocations: 107.8 kB / 0.6236 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/0.4891, allocations: 1.606 MB / 0.6252 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/0.4893, allocations: 20 kB / 0.6252 GB, free: 1.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01802/0.5073, allocations: 8.76 MB / 0.6338 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.5073, allocations: 64 / 0.6338 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/0.5212, allocations: 4.737 MB / 0.6384 GB, free: 3.598 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005268/0.5217, allocations: 227.2 kB / 0.6386 GB, free: 3.355 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005151/0.5223, allocations: 20 kB / 0.6386 GB, free: 3.336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/0.5237, allocations: 107.9 kB / 0.6387 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006658/0.5244, allocations: 192.7 kB / 0.6389 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.5246, allocations: 27.98 kB / 0.639 GB, free: 3.012 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001257/0.5258, allocations: 0.7274 MB / 0.6397 GB, free: 2.277 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5258, allocations: 3.938 kB / 0.6397 GB, free: 2.273 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001714/0.5275, allocations: 471.5 kB / 0.6401 GB, free: 1.812 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.01441/0.542, allocations: 5.331 MB / 0.6453 GB, free: 12.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006144/0.5481, allocations: 2.51 MB / 0.6478 GB, free: 9.891 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5482, allocations: 0 / 0.6478 GB, free: 9.891 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0041/0.5523, allocations: 1.595 MB / 0.6493 GB, free: 8.258 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.5534, allocations: 116.5 kB / 0.6494 GB, free: 8.141 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03825/0.5917, allocations: 17.14 MB / 0.6662 GB, free: 6.551 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006462/0.5923, allocations: 1.128 MB / 0.6673 GB, free: 5.395 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000555/0.5929, allocations: 116 kB / 0.6674 GB, free: 5.281 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005936/0.5935, allocations: 467.3 kB / 0.6678 GB, free: 4.824 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5935, allocations: 0 / 0.6678 GB, free: 4.824 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04883/0.6423, allocations: 31.11 MB / 0.6982 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.6426, allocations: 253 kB / 0.6985 GB, free: 5.668 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.604, allocations: 3 kB / 0.6985 GB, free: 5.668 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)