Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_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.0007958/0.0007958, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.349/1.349, allocations: 223.3 MB / 239 MB, free: 5.426 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.001537/0.001537, allocations: 176.4 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4781/0.4781, allocations: 78.56 MB / 419.9 MB, free: 4.301 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.0003919, allocations: 12 kB / 499.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1455, allocations: 69.35 MB / 0.5559 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2844/0.4299, allocations: 12.84 MB / 0.5684 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007889/0.4378, allocations: 3.443 MB / 0.5718 GB, free: 32.69 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003403/0.4413, allocations: 29.56 kB / 0.5718 GB, free: 32.69 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.4433, allocations: 390.7 kB / 0.5722 GB, free: 32.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.4486, allocations: 1.195 MB / 0.5734 GB, free: 31.72 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003542/0.4522, allocations: 1.279 MB / 0.5746 GB, free: 31.13 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004997/0.4572, allocations: 3.336 MB / 0.5779 GB, free: 29.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001365/0.4586, allocations: 0.6992 MB / 0.5786 GB, free: 29.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.4609, allocations: 1.309 MB / 0.5798 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.463, allocations: 1.708 MB / 0.5815 GB, free: 27.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004438/0.4635, allocations: 142.3 kB / 0.5816 GB, free: 27.79 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009039/0.4644, allocations: 264.2 kB / 0.5819 GB, free: 27.76 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004664/0.4649, allocations: 0.5886 MB / 0.5825 GB, free: 27.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006903/0.4656, allocations: 0.5222 MB / 0.583 GB, free: 27.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002462/0.468, allocations: 2.942 MB / 0.5858 GB, free: 26.17 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4681, allocations: 0 / 0.5858 GB, free: 26.17 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4681, allocations: 1.875 kB / 0.5858 GB, free: 26.17 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.272e-05/0.4682, allocations: 0 / 0.5858 GB, free: 26.17 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.01936/0.4875, allocations: 6.154 MB / 0.5919 GB, free: 23.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4876, allocations: 13.53 kB / 0.5919 GB, free: 23.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/0.4886, allocations: 299.1 kB / 0.5922 GB, free: 23.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01437/0.503, allocations: 2.296 MB / 0.5944 GB, free: 23.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004687/0.5078, allocations: 1.769 MB / 0.5961 GB, free: 22.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008678/0.5087, allocations: 0.751 MB / 0.5969 GB, free: 21.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.5098, allocations: 219.6 kB / 0.5971 GB, free: 21.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008438/0.5182, allocations: 3.217 MB / 0.6002 GB, free: 20.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.3e-05/0.5183, allocations: 0.5156 kB / 0.6002 GB, free: 20.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/0.5186, allocations: 86.73 kB / 0.6003 GB, free: 20.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.706e-05/0.5187, allocations: 53.2 kB / 0.6003 GB, free: 20.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00663/0.5253, allocations: 2.968 MB / 0.6032 GB, free: 19.31 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.02195/0.5473, allocations: 10.13 MB / 0.6131 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.5589, allocations: 4.86 MB / 0.6179 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004627/0.5636, allocations: 2.163 MB / 0.62 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005296/0.5641, allocations: 48 kB / 0.62 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005462/0.5696, allocations: 2.419 MB / 0.6224 GB, free: 9.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 7.885e-06/0.5696, allocations: 4 kB / 0.6224 GB, free: 9.406 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1091/0.6787, allocations: 33.49 MB / 0.6551 GB, free: 7.797 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.6789, allocations: 188.2 kB / 0.6553 GB, free: 7.574 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/0.6831, allocations: 2.253 MB / 0.6575 GB, free: 5.301 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007872/0.6839, allocations: 77.69 kB / 0.6576 GB, free: 5.219 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/0.685, allocations: 1.168 MB / 0.6587 GB, free: 4.039 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001559/0.6866, allocations: 0.8704 MB / 0.6595 GB, free: 3.156 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006904/0.6873, allocations: 64 kB / 0.6596 GB, free: 3.094 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002713/0.6876, allocations: 432.8 kB / 0.66 GB, free: 2.664 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004813/0.6924, allocations: 2.134 MB / 0.6621 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005101/0.6975, allocations: 2.513 MB / 0.6646 GB, free: 13.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005197/0.7027, allocations: 2.411 MB / 0.6669 GB, free: 11.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/0.7028, allocations: 0 / 0.6669 GB, free: 11.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04268/0.7455, allocations: 15.16 MB / 0.6817 GB, free: 12.24 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.7456, allocations: 110.8 kB / 0.6818 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.7457, allocations: 15.98 kB / 0.6818 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01882/0.7645, allocations: 6.412 MB / 0.6881 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002997/0.7675, allocations: 0.5734 MB / 0.6887 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05994/0.8275, allocations: 25.15 MB / 0.7132 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004746/0.8323, allocations: 0.5792 MB / 0.7138 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008024/0.8331, allocations: 116 kB / 0.7139 GB, free: 11.14 MB / 0.5137 GB Warning: Assuming fixed start value for the following 7 variables: Exc2.firstOrder2.y:VARIABLE(flow=false start = Exc2.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real Exc1.firstOrder2.y:VARIABLE(flow=false start = Exc1.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (327): * Single equations (assignments): 322 * Array equations: 0 * Algorithm blocks: 4 * 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 {65 26} Notification: Performance of prepare postOptimizeDAE: time 0.002101/0.8352, allocations: 0.54 MB / 0.7144 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/0.8365, allocations: 296.3 kB / 0.7147 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04012/0.8766, allocations: 14.73 MB / 0.7291 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.039e-05/0.8767, allocations: 24.94 kB / 0.7291 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.283e-05/0.8768, allocations: 20 kB / 0.7291 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.154e-05/0.8769, allocations: 11.95 kB / 0.7292 GB, free: 11.45 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.04981/0.9267, allocations: 18.32 MB / 0.7471 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/0.9268, allocations: 0 / 0.7471 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.9285, allocations: 247.6 kB / 0.7473 GB, free: 8.723 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01883/0.9473, allocations: 6.231 MB / 0.7534 GB, free: 2.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008272/0.9482, allocations: 52.73 kB / 0.7534 GB, free: 2.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3459/1.294, allocations: 25.5 MB / 0.7783 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.294, allocations: 6.438 kB / 0.7783 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04451/1.339, allocations: 17.28 MB / 0.7952 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.34, allocations: 420.5 kB / 0.7956 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001097/1.341, allocations: 46.88 kB / 0.7957 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003359/1.344, allocations: 411.1 kB / 0.796 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002273/1.347, allocations: 0.5786 MB / 0.7966 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/1.347, allocations: 67.06 kB / 0.7967 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002624/1.35, allocations: 1.478 MB / 0.7981 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.35, allocations: 3.062 kB / 0.7981 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004335/1.354, allocations: 1.178 MB / 0.7993 GB, free: 161.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(65,7.8%) 23} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04612/1.4, allocations: 17.92 MB / 0.8168 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01709/1.417, allocations: 7.503 MB / 0.8241 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.417, allocations: 0 / 0.8241 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01257/1.43, allocations: 5.082 MB / 0.8291 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/1.434, allocations: 256.3 kB / 0.8293 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07014/1.504, allocations: 33.79 MB / 0.8623 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/1.506, allocations: 1.806 MB / 0.8641 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001487/1.507, allocations: 258.5 kB / 0.8643 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/1.509, allocations: 1.222 MB / 0.8655 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.273e-06/1.509, allocations: 0 / 0.8655 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/1.625, allocations: 80.78 MB / 0.9444 GB, free: 33.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/1.625, allocations: 227.3 kB / 0.9446 GB, free: 33.27 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.278/5.903, allocations: 0 / 0.9446 GB, free: 33.27 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: