Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.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: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 104.9 kB / 16.27 MB, free: 6.402 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.479/1.479, allocations: 222.9 MB / 239.9 MB, free: 4.637 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.001746/0.001746, allocations: 199.7 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5733/0.5733, allocations: 91.91 MB / 432.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 83.81 kB / 0.5025 GB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4236/0.4254, allocations: 71.27 MB / 0.5721 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.006403/0.4319, allocations: 6.532 MB / 0.5785 GB, free: 32.78 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004158/0.4361, allocations: 1.952 MB / 0.5804 GB, free: 31.43 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007291/0.4369, allocations: 8.719 kB / 0.5804 GB, free: 31.43 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000705/0.4376, allocations: 240 kB / 0.5806 GB, free: 31.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.4394, allocations: 0.799 MB / 0.5814 GB, free: 30.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.4406, allocations: 0.6228 MB / 0.582 GB, free: 30.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.4421, allocations: 1.571 MB / 0.5836 GB, free: 29.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000565/0.4426, allocations: 326 kB / 0.5839 GB, free: 29.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006988/0.4434, allocations: 0.646 MB / 0.5845 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007195/0.4441, allocations: 0.8276 MB / 0.5853 GB, free: 28.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000178/0.4443, allocations: 123.8 kB / 0.5854 GB, free: 28.85 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.4448, allocations: 253.5 kB / 0.5857 GB, free: 28.81 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.445, allocations: 335 kB / 0.586 GB, free: 28.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004664/0.4455, allocations: 0.6714 MB / 0.5867 GB, free: 28.14 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.4469, allocations: 1.634 MB / 0.5882 GB, free: 27.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.447, allocations: 0 / 0.5882 GB, free: 27.4 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.447, allocations: 0 / 0.5882 GB, free: 27.4 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.447, allocations: 0 / 0.5882 GB, free: 27.4 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008963/0.456, allocations: 2.69 MB / 0.5909 GB, free: 26.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.456, allocations: 8.594 kB / 0.5909 GB, free: 26.13 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005162/0.4612, allocations: 0.7819 MB / 0.5916 GB, free: 25.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.463, allocations: 0.8846 MB / 0.5925 GB, free: 25.37 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002889/0.4633, allocations: 268.1 kB / 0.5928 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.4635, allocations: 83.38 kB / 0.5928 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002209/0.4657, allocations: 1.084 MB / 0.5939 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.4657, allocations: 0 / 0.5939 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.4658, allocations: 30.62 kB / 0.5939 GB, free: 24.67 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.4659, allocations: 18.53 kB / 0.594 GB, free: 24.67 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/0.4682, allocations: 0.9849 MB / 0.5949 GB, free: 24.34 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.008402/0.4766, allocations: 3.814 MB / 0.5986 GB, free: 22.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008761/0.4854, allocations: 2.375 MB / 0.601 GB, free: 21.3 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/0.4874, allocations: 0.6747 MB / 0.6016 GB, free: 21.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.4876, allocations: 12.89 kB / 0.6016 GB, free: 21.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001855/0.4894, allocations: 0.8226 MB / 0.6024 GB, free: 20.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.777e-06/0.4894, allocations: 0 / 0.6024 GB, free: 20.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.03138/0.5208, allocations: 7.191 MB / 0.6095 GB, free: 19.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.5209, allocations: 118.3 kB / 0.6096 GB, free: 19.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002071/0.523, allocations: 1.09 MB / 0.6106 GB, free: 18.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002173/0.5232, allocations: 45.83 kB / 0.6107 GB, free: 18.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.5236, allocations: 498.6 kB / 0.6111 GB, free: 18.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003735/0.524, allocations: 351.8 kB / 0.6115 GB, free: 18.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005438/0.5245, allocations: 283 kB / 0.6118 GB, free: 17.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.401e-05/0.5246, allocations: 303 kB / 0.612 GB, free: 17.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.5263, allocations: 0.7555 MB / 0.6128 GB, free: 17.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.5281, allocations: 0.9293 MB / 0.6137 GB, free: 16.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02286/0.551, allocations: 5.577 MB / 0.6191 GB, free: 13.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.5511, allocations: 0 / 0.6191 GB, free: 13.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01249/0.5636, allocations: 4.356 MB / 0.6234 GB, free: 9.523 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.244e-05/0.5637, allocations: 67.33 kB / 0.6235 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.5637, allocations: 0 / 0.6235 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005494/0.5692, allocations: 1.588 MB / 0.625 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.5708, allocations: 279.6 kB / 0.6253 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/0.5891, allocations: 8.521 MB / 0.6336 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.5913, allocations: 190.8 kB / 0.6338 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.5915, allocations: 67.91 kB / 0.6338 GB, free: 14.65 MB / 446.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "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: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006337/0.5921, allocations: 288.2 kB / 0.6341 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.5924, allocations: 126.5 kB / 0.6342 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01281/0.6052, allocations: 3.877 MB / 0.638 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/0.6053, allocations: 12 kB / 0.638 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.6053, allocations: 8 kB / 0.638 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.591e-05/0.6053, allocations: 3.984 kB / 0.638 GB, free: 10.3 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.01499/0.6203, allocations: 5.454 MB / 0.6434 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.6204, allocations: 0 / 0.6434 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006452/0.621, allocations: 95.89 kB / 0.6435 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005696/0.6267, allocations: 1.619 MB / 0.645 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.6269, allocations: 20 kB / 0.6451 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/0.6485, allocations: 9.638 MB / 0.6545 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.6486, allocations: 0 / 0.6545 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01577/0.6644, allocations: 4.721 MB / 0.6591 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006755/0.6651, allocations: 223.3 kB / 0.6593 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005755/0.6657, allocations: 24 kB / 0.6593 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.6674, allocations: 111.9 kB / 0.6594 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000774/0.6682, allocations: 200.8 kB / 0.6596 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/0.6684, allocations: 31.98 kB / 0.6596 GB, free: 3.707 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001523/0.6699, allocations: 0.7315 MB / 0.6604 GB, free: 2.969 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6699, allocations: 0 / 0.6604 GB, free: 2.969 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002237/0.6722, allocations: 475.5 kB / 0.6608 GB, free: 2.504 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004202/0.6726, allocations: 135.8 kB / 0.6609 GB, free: 2.363 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007552/0.6802, allocations: 2.552 MB / 0.6634 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.6802, allocations: 0 / 0.6634 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004695/0.6849, allocations: 1.596 MB / 0.665 GB, free: 14.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.6867, allocations: 122 kB / 0.6651 GB, free: 14.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005227/0.6919, allocations: 2.282 MB / 0.6673 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009315/0.6929, allocations: 1.12 MB / 0.6684 GB, free: 10.56 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.6933, allocations: 87.41 kB / 0.6685 GB, free: 10.47 MB / 478.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6933, allocations: 4 kB / 0.6685 GB, free: 10.47 MB / 478.1 MB Notification: Performance of Templates: time 0.03567/0.729, allocations: 23.36 MB / 0.6913 GB, free: 3.113 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)