Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.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_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI",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.001137/0.001137, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.5 MB / 229.6 MB, free: 7.605 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007866/0.0007866, allocations: 96.27 kB / 280.5 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4622/0.4622, allocations: 78.94 MB / 410.2 MB, free: 5.957 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.772e-05, allocations: 4 kB / 486 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 69.52 MB / 0.5425 GB, free: 5.805 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.5171, allocations: 98.41 MB / 0.6386 GB, free: 15.64 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.5174, allocations: 79.95 kB / 0.6387 GB, free: 15.56 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0995/0.6169, allocations: 35.31 MB / 0.6732 GB, free: 12.25 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.6169, allocations: 0 / 0.6732 GB, free: 12.25 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001279/0.6171, allocations: 24 kB / 0.6732 GB, free: 12.23 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.005109/0.6222, allocations: 1.681 MB / 0.6749 GB, free: 10.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.6223, allocations: 12.59 kB / 0.6749 GB, free: 10.48 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003611/0.6259, allocations: 0.5564 MB / 0.6754 GB, free: 9.918 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/0.6277, allocations: 0.7877 MB / 0.6762 GB, free: 9.074 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002858/0.628, allocations: 202.5 kB / 0.6764 GB, free: 8.848 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.6282, allocations: 47.91 kB / 0.6764 GB, free: 8.801 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001578/0.6298, allocations: 0.8045 MB / 0.6772 GB, free: 7.996 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.6314, allocations: 0.8335 MB / 0.678 GB, free: 7.152 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.6314, allocations: 4 kB / 0.678 GB, free: 7.148 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.6315, allocations: 0 / 0.678 GB, free: 7.148 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.6315, allocations: 16 kB / 0.678 GB, free: 7.133 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.007275/0.6388, allocations: 3.741 MB / 0.6817 GB, free: 3.207 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007266/0.6461, allocations: 2.564 MB / 0.6842 GB, free: 0.543 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.6469, allocations: 0.5157 MB / 0.6847 GB, free: 24 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.6471, allocations: 16.7 kB / 0.6847 GB, free: 8 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.6471, allocations: 43.34 kB / 0.6848 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=93): time 2.775e-06/0.6471, allocations: 0 / 0.6848 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=93): time 0.01212/0.6592, allocations: 3.805 MB / 0.6885 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.6594, allocations: 137.3 kB / 0.6886 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.6611, allocations: 0.8028 MB / 0.6894 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.6612, allocations: 29.7 kB / 0.6894 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004865/0.6617, allocations: 0.4972 MB / 0.6899 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000481/0.6622, allocations: 327.1 kB / 0.6902 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.6623, allocations: 4 kB / 0.6902 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6625, allocations: 338 kB / 0.6905 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007275/0.6632, allocations: 426.6 kB / 0.691 GB, free: 9.535 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008282/0.6641, allocations: 0.5473 MB / 0.6915 GB, free: 8.945 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008028/0.6649, allocations: 482.2 kB / 0.6919 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.6649, allocations: 0 / 0.6919 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.0122/0.6771, allocations: 3.93 MB / 0.6958 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005435/0.6777, allocations: 1.199 MB / 0.697 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.6777, allocations: 4 kB / 0.697 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005163/0.6829, allocations: 1.46 MB / 0.6984 GB, free: 1.773 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008962/0.6838, allocations: 167.7 kB / 0.6985 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.6973, allocations: 6.356 MB / 0.7048 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.6991, allocations: 163.2 kB / 0.7049 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.6993, allocations: 35.98 kB / 0.7049 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.6993, allocations: 4 kB / 0.7049 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01188/0.7112, allocations: 3.774 MB / 0.7086 GB, free: 7.156 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.7112, allocations: 7.938 kB / 0.7086 GB, free: 7.148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004986/0.7162, allocations: 1.449 MB / 0.7101 GB, free: 5.695 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008276/0.717, allocations: 159.8 kB / 0.7102 GB, free: 5.539 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01308/0.7301, allocations: 6.344 MB / 0.7164 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.7318, allocations: 160.3 kB / 0.7166 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/0.732, allocations: 35.98 kB / 0.7166 GB, free: 14.88 MB / 0.5261 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 2 * 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.0004329/0.7324, allocations: 169.7 kB / 0.7168 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01179/0.7442, allocations: 3.801 MB / 0.7205 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/0.7447, allocations: 122.5 kB / 0.7206 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.7563, allocations: 3.89 MB / 0.7244 GB, free: 6.852 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.7563, allocations: 11.95 kB / 0.7244 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.7563, allocations: 8 kB / 0.7244 GB, free: 6.832 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/0.7563, allocations: 3.984 kB / 0.7244 GB, free: 6.828 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.01387/0.7702, allocations: 5.428 MB / 0.7297 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.7703, allocations: 0 / 0.7297 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007261/0.771, allocations: 117.9 kB / 0.7298 GB, free: 1.195 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004535/0.7755, allocations: 1.383 MB / 0.7312 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001697/0.7757, allocations: 7.984 kB / 0.7312 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.787, allocations: 5.628 MB / 0.7367 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.7871, allocations: 0 / 0.7367 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01249/0.7996, allocations: 4.611 MB / 0.7412 GB, free: 5.414 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.8, allocations: 215.3 kB / 0.7414 GB, free: 5.184 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.8003, allocations: 8 kB / 0.7414 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.8016, allocations: 123.9 kB / 0.7415 GB, free: 5.055 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004516/0.802, allocations: 176.5 kB / 0.7417 GB, free: 4.883 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/0.8021, allocations: 24 kB / 0.7417 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001035/0.8032, allocations: 0.6136 MB / 0.7423 GB, free: 4.238 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.465e-06/0.8032, allocations: 96 / 0.7423 GB, free: 4.238 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002164/0.8054, allocations: 0.6122 MB / 0.7429 GB, free: 3.625 MB / 0.5417 GB 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,aVRTypeIchange1_1.firstOrder.y,aVRTypeIchange1_1.firstOrder2.y,aVRTypeIchange1_1.transferFunction.x_scaled[1],aVRTypeIchange1_1.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(18,25.9%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01308/0.8185, allocations: 5.262 MB / 0.748 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008945/0.8274, allocations: 3.51 MB / 0.7515 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.8275, allocations: 3.938 kB / 0.7515 GB, free: 10.74 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003648/0.8311, allocations: 1.377 MB / 0.7528 GB, free: 9.348 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008986/0.832, allocations: 95.33 kB / 0.7529 GB, free: 9.258 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004391/0.8364, allocations: 1.901 MB / 0.7548 GB, free: 7.32 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008114/0.8373, allocations: 1.15 MB / 0.7559 GB, free: 6.141 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009005/0.8382, allocations: 202.7 kB / 0.7561 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005642/0.8388, allocations: 451.3 kB / 0.7565 GB, free: 5.496 MB / 0.5573 GB Notification: Performance of SimCode: time 5.1e-07/0.8388, allocations: 4 kB / 0.7565 GB, free: 5.492 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3519/1.191, allocations: 35.14 MB / 0.7908 GB, free: 145 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/1.191, allocations: 147.3 kB / 0.791 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/4.258, allocations: 1.25 kB / 0.791 GB, free: 144.8 MB / 0.5573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRI.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1)