Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.001255/0.001255, 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.278/1.278, allocations: 222.9 MB / 239 MB, free: 4.703 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.001743/0.001743, allocations: 184.5 kB / 289.2 MB, free: 2.441 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4533/0.4533, allocations: 78.52 MB / 417.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 71.89 kB / 497 MB, free: 6.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1249, allocations: 68.19 MB / 0.552 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.2522/0.3772, allocations: 14.36 MB / 0.566 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007759/0.385, allocations: 3.585 MB / 0.5695 GB, free: 29.85 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002933/0.388, allocations: 30.62 kB / 0.5695 GB, free: 29.85 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.3895, allocations: 438.6 kB / 0.5699 GB, free: 29.7 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004275/0.3939, allocations: 1.213 MB / 0.5711 GB, free: 29.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.3968, allocations: 1.411 MB / 0.5725 GB, free: 28.94 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003986/0.4008, allocations: 3.693 MB / 0.5761 GB, free: 28.1 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.4019, allocations: 0.9033 MB / 0.577 GB, free: 27.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.4039, allocations: 1.535 MB / 0.5785 GB, free: 27.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/0.4056, allocations: 1.957 MB / 0.5804 GB, free: 26.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003564/0.4059, allocations: 284.4 kB / 0.5807 GB, free: 26.87 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007671/0.4067, allocations: 427.4 kB / 0.5811 GB, free: 26.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004468/0.4072, allocations: 0.7639 MB / 0.5818 GB, free: 26.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.4083, allocations: 1.644 MB / 0.5834 GB, free: 25.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003153/0.4114, allocations: 3.915 MB / 0.5873 GB, free: 23.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4115, allocations: 0.6875 kB / 0.5873 GB, free: 23.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4115, allocations: 4 kB / 0.5873 GB, free: 23.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.861e-05/0.4115, allocations: 0.9375 kB / 0.5873 GB, free: 23.39 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02183/0.4334, allocations: 6.578 MB / 0.5937 GB, free: 20.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.4334, allocations: 10.59 kB / 0.5937 GB, free: 20.76 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003731/0.4338, allocations: 303.5 kB / 0.594 GB, free: 20.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01448/0.4483, allocations: 2.277 MB / 0.5962 GB, free: 20.13 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004245/0.4526, allocations: 1.873 MB / 0.598 GB, free: 18.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006095/0.4532, allocations: 0.7206 MB / 0.5987 GB, free: 18.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005307/0.4538, allocations: 214 kB / 0.5989 GB, free: 18.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006423/0.4602, allocations: 3.033 MB / 0.6019 GB, free: 17.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.4603, allocations: 0 / 0.6019 GB, free: 17.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/0.4605, allocations: 91.78 kB / 0.602 GB, free: 17.03 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.661e-05/0.4606, allocations: 49.5 kB / 0.602 GB, free: 17.03 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005815/0.4664, allocations: 2.782 MB / 0.6048 GB, free: 16.09 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.01984/0.4862, allocations: 9.87 MB / 0.6144 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/0.4968, allocations: 4.191 MB / 0.6185 GB, free: 8.832 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004079/0.501, allocations: 1.964 MB / 0.6204 GB, free: 7.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003354/0.5013, allocations: 48.67 kB / 0.6205 GB, free: 7.805 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004376/0.5057, allocations: 2.23 MB / 0.6226 GB, free: 6.469 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 5.04e-06/0.5057, allocations: 0 / 0.6226 GB, free: 6.469 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1166/0.6224, allocations: 29.47 MB / 0.6514 GB, free: 8.875 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.6225, allocations: 180.2 kB / 0.6516 GB, free: 8.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/0.6263, allocations: 2.277 MB / 0.6538 GB, free: 6.363 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009023/0.6273, allocations: 73.69 kB / 0.6539 GB, free: 6.285 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009084/0.6282, allocations: 1.176 MB / 0.655 GB, free: 5.098 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001224/0.6294, allocations: 0.8705 MB / 0.6559 GB, free: 4.215 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.6305, allocations: 0.5578 MB / 0.6564 GB, free: 3.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.6306, allocations: 305.1 kB / 0.6567 GB, free: 3.348 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003969/0.6346, allocations: 1.947 MB / 0.6586 GB, free: 1.398 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004145/0.6387, allocations: 2.313 MB / 0.6609 GB, free: 14.99 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05158/0.6903, allocations: 14.04 MB / 0.6746 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/0.6904, allocations: 7.938 kB / 0.6746 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.03775/0.7281, allocations: 12.28 MB / 0.6866 GB, free: 4.383 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.7283, allocations: 122.8 kB / 0.6867 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.7283, allocations: 6.328 kB / 0.6867 GB, free: 4.234 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01745/0.7458, allocations: 5.321 MB / 0.6919 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/0.7489, allocations: 0.5656 MB / 0.6924 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05944/0.8083, allocations: 23.52 MB / 0.7154 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004775/0.8131, allocations: 489.1 kB / 0.7159 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004133/0.8136, allocations: 113.3 kB / 0.716 GB, free: 6.086 MB / 0.5137 GB Warning: Assuming fixed start value for the following 6 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 order3_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 (325): * Single equations (assignments): 320 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001352/0.815, allocations: 0.538 MB / 0.7165 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007004/0.8157, allocations: 292.3 kB / 0.7168 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03793/0.8536, allocations: 11.9 MB / 0.7284 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-05/0.8537, allocations: 28 kB / 0.7284 GB, free: 9.27 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.741e-05/0.8537, allocations: 20 kB / 0.7285 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.79e-05/0.8538, allocations: 11.95 kB / 0.7285 GB, free: 9.238 MB / 0.5294 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.04251/0.8963, allocations: 15.5 MB / 0.7436 GB, free: 9.578 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.609e-05/0.8964, allocations: 3.938 kB / 0.7436 GB, free: 9.574 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.8981, allocations: 241.2 kB / 0.7438 GB, free: 9.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01733/0.9154, allocations: 5.288 MB / 0.749 GB, free: 4.035 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000762/0.9162, allocations: 55.98 kB / 0.7491 GB, free: 3.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2929/1.209, allocations: 24.96 MB / 0.7734 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.209, allocations: 4.812 kB / 0.7734 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04048/1.25, allocations: 14.25 MB / 0.7874 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/1.251, allocations: 408.3 kB / 0.7877 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005181/1.251, allocations: 51.98 kB / 0.7878 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/1.254, allocations: 299.7 kB / 0.7881 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002078/1.256, allocations: 0.5803 MB / 0.7886 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/1.256, allocations: 63.84 kB / 0.7887 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002132/1.258, allocations: 1.512 MB / 0.7902 GB, free: 163 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.413e-06/1.259, allocations: 1.094 kB / 0.7902 GB, free: 163 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003443/1.262, allocations: 1.17 MB / 0.7913 GB, free: 163 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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 {(66,22,7.7%)} * 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.04375/1.306, allocations: 14.89 MB / 0.8059 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02049/1.326, allocations: 6.805 MB / 0.8125 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.326, allocations: 1.75 kB / 0.8125 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01226/1.339, allocations: 4.406 MB / 0.8168 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003706/1.342, allocations: 263.2 kB / 0.8171 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1078/1.45, allocations: 46.54 MB / 0.8625 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/1.452, allocations: 1.805 MB / 0.8643 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001564/1.454, allocations: 260.8 kB / 0.8645 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/1.455, allocations: 1.237 MB / 0.8657 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.262e-06/1.455, allocations: 0 / 0.8657 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.098/2.553, allocations: 85.88 MB / 0.9496 GB, free: 25.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/2.554, allocations: 233.5 kB / 0.9498 GB, free: 25.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.374/6.928, allocations: 2.109 kB / 0.9498 GB, free: 25.59 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)