Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_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.000884/0.0008841, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.377/1.377, allocations: 223.3 MB / 239.4 MB, free: 5.539 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.0009502/0.0009502, allocations: 176.5 kB / 290.6 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5463/0.5463, allocations: 91.93 MB / 433.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003772, allocations: 15.98 kB / 0.5049 GB, free: 7.195 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3584, allocations: 72.46 MB / 0.5756 GB, free: 36.62 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.008763/0.3672, allocations: 13.84 MB / 0.5892 GB, free: 26.92 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006817/0.3741, allocations: 3.601 MB / 0.5927 GB, free: 24.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002335/0.3764, allocations: 33.62 kB / 0.5927 GB, free: 24.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.3776, allocations: 433.2 kB / 0.5931 GB, free: 24.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004054/0.3817, allocations: 1.211 MB / 0.5943 GB, free: 23.35 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003125/0.3848, allocations: 1.423 MB / 0.5957 GB, free: 22.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005172/0.39, allocations: 3.521 MB / 0.5991 GB, free: 20.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001688/0.3917, allocations: 0.789 MB / 0.5999 GB, free: 20.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002602/0.3944, allocations: 1.324 MB / 0.6012 GB, free: 19.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003109/0.3975, allocations: 1.77 MB / 0.6029 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.3986, allocations: 139.9 kB / 0.6031 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.4004, allocations: 274.7 kB / 0.6033 GB, free: 18.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.4015, allocations: 0.6064 MB / 0.6039 GB, free: 18.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003032/0.4046, allocations: 1.492 MB / 0.6054 GB, free: 17.58 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007845/0.4124, allocations: 3.708 MB / 0.609 GB, free: 16.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4125, allocations: 0.7031 kB / 0.609 GB, free: 16.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4125, allocations: 4 kB / 0.609 GB, free: 16.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002099/0.4127, allocations: 1.031 kB / 0.609 GB, free: 16.16 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02466/0.4374, allocations: 6.117 MB / 0.615 GB, free: 13.89 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.4374, allocations: 9.891 kB / 0.615 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001271/0.4387, allocations: 306.9 kB / 0.6153 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01635/0.4551, allocations: 2.295 MB / 0.6175 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005243/0.4604, allocations: 1.87 MB / 0.6193 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008349/0.4612, allocations: 0.7574 MB / 0.6201 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009521/0.4622, allocations: 218.8 kB / 0.6203 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008608/0.4708, allocations: 3.233 MB / 0.6234 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.4709, allocations: 1.281 kB / 0.6234 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/0.4712, allocations: 85.38 kB / 0.6235 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.724e-05/0.4712, allocations: 54.06 kB / 0.6236 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007164/0.4784, allocations: 2.985 MB / 0.6265 GB, free: 9.031 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.02097/0.4994, allocations: 10.17 MB / 0.6364 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/0.5125, allocations: 4.864 MB / 0.6412 GB, free: 9.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005316/0.5179, allocations: 2.163 MB / 0.6433 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005148/0.5185, allocations: 45.95 kB / 0.6433 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006476/0.5249, allocations: 2.433 MB / 0.6457 GB, free: 4.902 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 6.703e-06/0.525, allocations: 0 / 0.6457 GB, free: 4.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1439/0.6689, allocations: 34.81 MB / 0.6797 GB, free: 1.965 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.669, allocations: 184.2 kB / 0.6799 GB, free: 1.746 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005041/0.6741, allocations: 2.277 MB / 0.6821 GB, free: 15.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009327/0.6751, allocations: 69.7 kB / 0.6822 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.6763, allocations: 1.16 MB / 0.6833 GB, free: 14.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001725/0.678, allocations: 0.8665 MB / 0.6841 GB, free: 13.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/0.6792, allocations: 292.5 kB / 0.6844 GB, free: 13.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.282e-05/0.6793, allocations: 305.1 kB / 0.6847 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005874/0.6851, allocations: 2.154 MB / 0.6868 GB, free: 10.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/0.6912, allocations: 2.521 MB / 0.6893 GB, free: 7.961 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06256/0.7537, allocations: 15.47 MB / 0.7044 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/0.7538, allocations: 7.938 kB / 0.7044 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.05115/0.805, allocations: 15.32 MB / 0.7193 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.8051, allocations: 117.1 kB / 0.7195 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/0.8052, allocations: 8 kB / 0.7195 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0213/0.8265, allocations: 6.265 MB / 0.7256 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/0.8298, allocations: 0.5695 MB / 0.7261 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07017/0.9, allocations: 24.49 MB / 0.7501 GB, free: 9.227 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005606/0.9056, allocations: 0.5947 MB / 0.7506 GB, free: 8.629 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009437/0.9066, allocations: 112 kB / 0.7507 GB, free: 8.52 MB / 0.545 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002567/0.9092, allocations: 0.5394 MB / 0.7513 GB, free: 7.965 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/0.9107, allocations: 296.3 kB / 0.7516 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04864/0.9593, allocations: 14.75 MB / 0.766 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.458e-05/0.9594, allocations: 24 kB / 0.766 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.325e-05/0.9595, allocations: 20 kB / 0.766 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.524e-05/0.9596, allocations: 11.95 kB / 0.766 GB, free: 8.812 MB / 0.5606 GB 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.3074/1.267, allocations: 18.34 MB / 0.7839 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.243e-05/1.267, allocations: 0 / 0.7839 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/1.269, allocations: 251 kB / 0.7842 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02125/1.29, allocations: 6.235 MB / 0.7903 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007832/1.291, allocations: 53.73 kB / 0.7903 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06429/1.355, allocations: 25.53 MB / 0.8152 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.355, allocations: 7.938 kB / 0.8152 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04885/1.404, allocations: 17.32 MB / 0.8322 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/1.406, allocations: 410.3 kB / 0.8326 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001301/1.407, allocations: 48 kB / 0.8326 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00417/1.411, allocations: 412.5 kB / 0.833 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002673/1.414, allocations: 0.564 MB / 0.8335 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004154/1.415, allocations: 67.84 kB / 0.8336 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002512/1.417, allocations: 1.501 MB / 0.8351 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.11e-07/1.417, allocations: 4 kB / 0.8351 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00525/1.422, allocations: 1.177 MB / 0.8362 GB, free: 136.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04834/1.471, allocations: 17.95 MB / 0.8538 GB, free: 119 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01982/1.491, allocations: 7.504 MB / 0.8611 GB, free: 111.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.491, allocations: 1.75 kB / 0.8611 GB, free: 111.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0146/1.505, allocations: 5.087 MB / 0.866 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/1.509, allocations: 267.7 kB / 0.8663 GB, free: 106 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1224/1.631, allocations: 53.01 MB / 0.9181 GB, free: 51.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/1.632, allocations: 1.814 MB / 0.9198 GB, free: 49.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001424/1.633, allocations: 262.5 kB / 0.9201 GB, free: 49.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/1.635, allocations: 1.214 MB / 0.9213 GB, free: 47.89 MB / 0.5606 GB Notification: Performance of SimCode: time 8.11e-07/1.635, allocations: 0 / 0.9213 GB, free: 47.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/1.756, allocations: 79.53 MB / 0.9989 GB, free: 0.6016 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/1.756, allocations: 257.4 kB / 0.9992 GB, free: 344 kB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.513/6.269, allocations: 0 / 0.9992 GB, free: 344 kB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)