Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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/Modelica 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09199/0.09199, allocations: 12.6 MB / 28.87 MB, free: 0.75 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 111.4 kB / 32.47 MB, free: 3.691 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 241.1 MB, free: 12.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 184.5 kB / 291.3 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.5004/0.5004, allocations: 78.52 MB / 420 MB, free: 11.26 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002597/0.002597, allocations: 139.3 kB / 0.5565 GB, free: 28.57 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1278, allocations: 68.12 MB / 0.623 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006992/0.1349, allocations: 6.253 MB / 0.6291 GB, free: 9.141 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004057/0.139, allocations: 1.815 MB / 0.6309 GB, free: 7.316 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009105/0.14, allocations: 8 kB / 0.6309 GB, free: 7.309 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006073/0.1406, allocations: 218.1 kB / 0.6311 GB, free: 7.094 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.1427, allocations: 0.7562 MB / 0.6319 GB, free: 6.34 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.1441, allocations: 0.5914 MB / 0.6324 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.146, allocations: 1.374 MB / 0.6338 GB, free: 4.375 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004591/0.1464, allocations: 283.8 kB / 0.634 GB, free: 4.082 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008612/0.1473, allocations: 0.5834 MB / 0.6346 GB, free: 3.496 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008142/0.1481, allocations: 0.7545 MB / 0.6354 GB, free: 2.738 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1483, allocations: 104 kB / 0.6355 GB, free: 2.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005/0.1488, allocations: 251.8 kB / 0.6357 GB, free: 2.391 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.1491, allocations: 286.7 kB / 0.636 GB, free: 2.109 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005066/0.1496, allocations: 0.6097 MB / 0.6366 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.1511, allocations: 1.483 MB / 0.638 GB, free: 8 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1511, allocations: 4 kB / 0.638 GB, free: 4 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1511, allocations: 0 / 0.638 GB, free: 4 kB / 446.1 MB Notification: Performance of Transformations before backend: time 2.202e-05/0.1511, allocations: 0 / 0.638 GB, free: 4 kB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008618/0.1598, allocations: 2.493 MB / 0.6404 GB, free: 13.46 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1598, allocations: 11.98 kB / 0.6405 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00521/0.165, allocations: 0.7594 MB / 0.6412 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.1666, allocations: 0.8007 MB / 0.642 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003007/0.1669, allocations: 256.2 kB / 0.6422 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.1671, allocations: 75.98 kB / 0.6423 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/0.17, allocations: 1.178 MB / 0.6434 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.1701, allocations: 3.938 kB / 0.6435 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.855e-05/0.1702, allocations: 31.94 kB / 0.6435 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.1702, allocations: 16 kB / 0.6435 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.1722, allocations: 0.9538 MB / 0.6444 GB, free: 9.262 MB / 462.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.006078/0.1783, allocations: 3.527 MB / 0.6479 GB, free: 5.547 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007554/0.1859, allocations: 2.319 MB / 0.6501 GB, free: 3.133 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.1875, allocations: 0.6595 MB / 0.6508 GB, free: 2.469 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.931e-05/0.1876, allocations: 20.62 kB / 0.6508 GB, free: 2.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.1877, allocations: 39.22 kB / 0.6508 GB, free: 2.402 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 3.236e-06/0.1877, allocations: 4 kB / 0.6508 GB, free: 2.398 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.0273/0.215, allocations: 6.745 MB / 0.6574 GB, free: 11.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.2152, allocations: 93.77 kB / 0.6575 GB, free: 11.48 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.2166, allocations: 0.9733 MB / 0.6585 GB, free: 10.49 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001719/0.2168, allocations: 45.7 kB / 0.6585 GB, free: 10.44 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.2171, allocations: 456.8 kB / 0.6589 GB, free: 9.988 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/0.2175, allocations: 311.6 kB / 0.6592 GB, free: 9.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004342/0.2179, allocations: 263.4 kB / 0.6595 GB, free: 9.414 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.218, allocations: 305.1 kB / 0.6598 GB, free: 9.113 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.2195, allocations: 0.691 MB / 0.6605 GB, free: 8.422 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.2211, allocations: 0.9261 MB / 0.6614 GB, free: 7.426 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02178/0.2429, allocations: 5.061 MB / 0.6663 GB, free: 2.289 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.2429, allocations: 0 / 0.6663 GB, free: 2.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01309/0.256, allocations: 4.141 MB / 0.6704 GB, free: 14.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.2561, allocations: 8 kB / 0.6704 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.2561, allocations: 4 kB / 0.6704 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005486/0.2616, allocations: 1.511 MB / 0.6718 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.2629, allocations: 259.6 kB / 0.6721 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/0.2825, allocations: 8.269 MB / 0.6802 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.2843, allocations: 182.8 kB / 0.6803 GB, free: 3.754 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.2844, allocations: 51.98 kB / 0.6804 GB, free: 3.703 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000613/0.285, allocations: 266.6 kB / 0.6806 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/0.286, allocations: 336.8 kB / 0.681 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/0.2978, allocations: 3.584 MB / 0.6845 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.2978, allocations: 8 kB / 0.6845 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.2979, allocations: 12 kB / 0.6845 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-05/0.2979, allocations: 3.984 kB / 0.6845 GB, free: 15.46 MB / 0.4981 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.0143/0.3122, allocations: 5.123 MB / 0.6895 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/0.3123, allocations: 3.938 kB / 0.6895 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/0.3129, allocations: 111.9 kB / 0.6896 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005504/0.3184, allocations: 1.575 MB / 0.6911 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.3186, allocations: 23.98 kB / 0.6912 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02056/0.3391, allocations: 10.75 MB / 0.7017 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3392, allocations: 0 / 0.7017 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01465/0.3539, allocations: 4.614 MB / 0.7062 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004128/0.3543, allocations: 211.4 kB / 0.7064 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.3545, allocations: 16.09 kB / 0.7064 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009997/0.3555, allocations: 91.89 kB / 0.7065 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005384/0.3561, allocations: 176.7 kB / 0.7066 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.655e-05/0.3561, allocations: 24 kB / 0.7067 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008325/0.357, allocations: 0.6434 MB / 0.7073 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.357, allocations: 3.938 kB / 0.7073 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001365/0.3584, allocations: 439.6 kB / 0.7077 GB, free: 7.152 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002845/0.3587, allocations: 135.2 kB / 0.7078 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006063/0.3647, allocations: 2.295 MB / 0.7101 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3648, allocations: 1.375 kB / 0.7101 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004045/0.3688, allocations: 1.313 MB / 0.7114 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.3704, allocations: 347.2 kB / 0.7117 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.3744, allocations: 2.093 MB / 0.7137 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2851/0.6595, allocations: 1.075 MB / 0.7148 GB, free: 85.11 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005074/0.66, allocations: 78.22 kB / 0.7149 GB, free: 85.11 MB / 0.5137 GB Notification: Performance of SimCode: time 1.203e-06/0.66, allocations: 1.031 kB / 0.7149 GB, free: 85.11 MB / 0.5137 GB Notification: Performance of Templates: time 0.03632/0.6963, allocations: 21.32 MB / 0.7357 GB, free: 78.46 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)