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.001626/0.001626, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.336/1.336, 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.001531/0.001532, allocations: 192.5 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5485/0.5485, allocations: 91.89 MB / 431.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 71.89 kB / 0.5015 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4089, allocations: 71.26 MB / 0.5711 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005959/0.4149, allocations: 6.893 MB / 0.5778 GB, free: 32.8 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.4188, allocations: 1.989 MB / 0.5798 GB, free: 31.44 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009273/0.4197, allocations: 13.38 kB / 0.5798 GB, free: 31.44 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000744/0.4205, allocations: 184 kB / 0.5799 GB, free: 31.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.4224, allocations: 0.7112 MB / 0.5806 GB, free: 30.91 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.4236, allocations: 0.5928 MB / 0.5812 GB, free: 30.59 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.425, allocations: 1.571 MB / 0.5827 GB, free: 29.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004256/0.4254, allocations: 329.1 kB / 0.5831 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006198/0.4261, allocations: 0.6543 MB / 0.5837 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.4267, allocations: 0.8262 MB / 0.5845 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.4269, allocations: 122.8 kB / 0.5846 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004677/0.4274, allocations: 266.6 kB / 0.5849 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.4276, allocations: 322.9 kB / 0.5852 GB, free: 28.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.428, allocations: 0.6732 MB / 0.5858 GB, free: 28.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.4294, allocations: 1.631 MB / 0.5874 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4294, allocations: 1.156 kB / 0.5874 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4294, allocations: 0 / 0.5874 GB, free: 27.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.4294, allocations: 4 kB / 0.5874 GB, free: 27.51 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.008817/0.4382, allocations: 2.688 MB / 0.5901 GB, free: 26.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.207e-05/0.4383, allocations: 8.719 kB / 0.5901 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001857/0.4385, allocations: 129.2 kB / 0.5902 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005144/0.4437, allocations: 0.7781 MB / 0.591 GB, free: 25.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.4453, allocations: 0.8786 MB / 0.5918 GB, free: 25.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/0.4456, allocations: 258 kB / 0.5921 GB, free: 25.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.4458, allocations: 89.78 kB / 0.5921 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.448, allocations: 1.09 MB / 0.5932 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.448, allocations: 1.188 kB / 0.5932 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.968e-05/0.4481, allocations: 30.34 kB / 0.5932 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.4481, allocations: 18.16 kB / 0.5933 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.4501, allocations: 0.9846 MB / 0.5942 GB, free: 24.37 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.006907/0.457, allocations: 3.854 MB / 0.598 GB, free: 22.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007909/0.465, allocations: 2.363 MB / 0.6003 GB, free: 21.33 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001924/0.4669, allocations: 0.6802 MB / 0.601 GB, free: 21.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.4671, allocations: 20.58 kB / 0.601 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00196/0.4691, allocations: 0.8212 MB / 0.6018 GB, free: 20.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.777e-06/0.4691, allocations: 0 / 0.6018 GB, free: 20.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03032/0.4994, allocations: 7.082 MB / 0.6087 GB, free: 19.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.4995, allocations: 117.9 kB / 0.6088 GB, free: 19.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.5019, allocations: 1.086 MB / 0.6099 GB, free: 18.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002771/0.5022, allocations: 46.39 kB / 0.6099 GB, free: 18.72 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004488/0.5027, allocations: 493.5 kB / 0.6104 GB, free: 18.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000537/0.5032, allocations: 358.4 kB / 0.6107 GB, free: 18.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009168/0.5042, allocations: 288.9 kB / 0.611 GB, free: 17.92 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.715e-05/0.5042, allocations: 303 kB / 0.6113 GB, free: 17.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.5061, allocations: 0.7637 MB / 0.612 GB, free: 17.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.5081, allocations: 0.9348 MB / 0.6129 GB, free: 16.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02392/0.532, allocations: 5.602 MB / 0.6184 GB, free: 13.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/0.5321, allocations: 0 / 0.6184 GB, free: 13.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01319/0.5453, allocations: 4.328 MB / 0.6226 GB, free: 9.336 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.425e-05/0.5454, allocations: 63.41 kB / 0.6227 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.5454, allocations: 4 kB / 0.6227 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004934/0.5504, allocations: 1.509 MB / 0.6242 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.552, allocations: 295.6 kB / 0.6245 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/0.5697, allocations: 8.276 MB / 0.6325 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/0.5723, allocations: 202.8 kB / 0.6327 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.5727, allocations: 63.97 kB / 0.6328 GB, free: 14.76 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.001096/0.5738, allocations: 296.3 kB / 0.6331 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005363/0.5743, allocations: 134.3 kB / 0.6332 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/0.5876, allocations: 3.857 MB / 0.637 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.236e-05/0.5877, allocations: 12 kB / 0.637 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/0.5877, allocations: 8 kB / 0.637 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.618e-05/0.5878, allocations: 7.969 kB / 0.637 GB, free: 10.41 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.01607/0.6038, allocations: 5.473 MB / 0.6423 GB, free: 4.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.6039, allocations: 4.031 kB / 0.6424 GB, free: 4.816 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007061/0.6046, allocations: 99.89 kB / 0.6424 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005594/0.6102, allocations: 1.598 MB / 0.644 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/0.6105, allocations: 23.98 kB / 0.644 GB, free: 3.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02095/0.6314, allocations: 9.637 MB / 0.6534 GB, free: 9.164 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.6315, allocations: 0 / 0.6534 GB, free: 9.164 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01506/0.6466, allocations: 4.733 MB / 0.6581 GB, free: 4.398 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006742/0.6473, allocations: 215.3 kB / 0.6583 GB, free: 4.168 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000532/0.6479, allocations: 20 kB / 0.6583 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.6495, allocations: 111.9 kB / 0.6584 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007489/0.6502, allocations: 196.8 kB / 0.6586 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/0.6504, allocations: 27.98 kB / 0.6586 GB, free: 3.816 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001389/0.6518, allocations: 0.7275 MB / 0.6593 GB, free: 3.082 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6518, allocations: 0 / 0.6593 GB, free: 3.082 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002098/0.6539, allocations: 483.5 kB / 0.6598 GB, free: 2.609 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.01518/0.6691, allocations: 5.324 MB / 0.665 GB, free: 13.24 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0073/0.6765, allocations: 2.536 MB / 0.6675 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.6765, allocations: 0 / 0.6675 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00462/0.6811, allocations: 1.586 MB / 0.669 GB, free: 9.039 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.6829, allocations: 114.4 kB / 0.6691 GB, free: 8.926 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04478/0.7277, allocations: 17.15 MB / 0.6859 GB, free: 7.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.7289, allocations: 1.116 MB / 0.687 GB, free: 6.176 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008212/0.7297, allocations: 116.1 kB / 0.6871 GB, free: 6.059 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008701/0.7306, allocations: 479.2 kB / 0.6875 GB, free: 5.594 MB / 494.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7306, allocations: 0 / 0.6875 GB, free: 5.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.078/0.8086, allocations: 32.96 MB / 0.7197 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002261/0.8089, allocations: 246.5 kB / 0.7199 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.869/3.678, allocations: 0 / 0.7199 GB, free: 4.598 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)