Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_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_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005112/0.005112, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.402/1.402, allocations: 222.9 MB / 239.4 MB, free: 4.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.001651/0.001652, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4759/0.4759, allocations: 78.53 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 79.88 kB / 0.5537 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4138/0.4156, allocations: 68.17 MB / 0.6202 GB, free: 9.699 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.00514/0.4208, allocations: 6.194 MB / 0.6263 GB, free: 3.992 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.4235, allocations: 1.853 MB / 0.6281 GB, free: 2.137 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.4239, allocations: 12 kB / 0.6281 GB, free: 2.125 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004176/0.4244, allocations: 210.1 kB / 0.6283 GB, free: 1.918 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.4257, allocations: 0.8032 MB / 0.6291 GB, free: 1.113 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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0009639/0.4267, allocations: 0.5813 MB / 0.6296 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.4279, allocations: 1.378 MB / 0.631 GB, free: 15.15 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004002/0.4283, allocations: 283.9 kB / 0.6313 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000601/0.4289, allocations: 0.5834 MB / 0.6318 GB, free: 14.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000729/0.4297, allocations: 0.7583 MB / 0.6326 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.4298, allocations: 108 kB / 0.6327 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003898/0.4302, allocations: 239.9 kB / 0.6329 GB, free: 13.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.4305, allocations: 294.7 kB / 0.6332 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004752/0.4309, allocations: 0.6097 MB / 0.6338 GB, free: 12.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.4322, allocations: 1.488 MB / 0.6352 GB, free: 10.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.4323, allocations: 0 / 0.6352 GB, free: 10.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4323, allocations: 0 / 0.6352 GB, free: 10.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.4323, allocations: 3.938 kB / 0.6352 GB, free: 10.79 MB / 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.008085/0.4404, allocations: 2.481 MB / 0.6377 GB, free: 8.246 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4404, allocations: 12.03 kB / 0.6377 GB, free: 8.234 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005174/0.4456, allocations: 0.7672 MB / 0.6384 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.4469, allocations: 0.7929 MB / 0.6392 GB, free: 6.613 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003636/0.4473, allocations: 260.2 kB / 0.6394 GB, free: 6.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.4475, allocations: 76 kB / 0.6395 GB, free: 6.246 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.4501, allocations: 1.174 MB / 0.6407 GB, free: 5.051 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.4501, allocations: 3.938 kB / 0.6407 GB, free: 5.047 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-05/0.4502, allocations: 28 kB / 0.6407 GB, free: 5.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.4502, allocations: 23.94 kB / 0.6407 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.4523, allocations: 0.9537 MB / 0.6416 GB, free: 4.039 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 preOpt removeSimpleEquations (simulation): time 0.00559/0.4579, allocations: 3.519 MB / 0.6451 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007685/0.4656, allocations: 2.319 MB / 0.6473 GB, free: 13.92 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.467, allocations: 0.6595 MB / 0.648 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.694e-05/0.467, allocations: 12.64 kB / 0.648 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.4671, allocations: 43.22 kB / 0.648 GB, free: 13.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 3.186e-06/0.4671, allocations: 0 / 0.648 GB, free: 13.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.0275/0.4946, allocations: 6.761 MB / 0.6546 GB, free: 6.375 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.4948, allocations: 97.7 kB / 0.6547 GB, free: 6.262 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.4964, allocations: 0.9656 MB / 0.6557 GB, free: 5.277 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.4965, allocations: 45.7 kB / 0.6557 GB, free: 5.227 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000342/0.4969, allocations: 452.8 kB / 0.6562 GB, free: 4.777 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003261/0.4972, allocations: 315.6 kB / 0.6565 GB, free: 4.465 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004214/0.4976, allocations: 255.5 kB / 0.6567 GB, free: 4.207 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.125e-05/0.4977, allocations: 305.1 kB / 0.657 GB, free: 3.906 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.4992, allocations: 0.6988 MB / 0.6577 GB, free: 3.207 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.5008, allocations: 0.9185 MB / 0.6586 GB, free: 2.219 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02243/0.5233, allocations: 5.061 MB / 0.6635 GB, free: 13.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.5233, allocations: 0 / 0.6635 GB, free: 13.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01411/0.5374, allocations: 4.145 MB / 0.6676 GB, free: 8.926 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.5375, allocations: 8 kB / 0.6676 GB, free: 8.918 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.5375, allocations: 4 kB / 0.6676 GB, free: 8.914 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005722/0.5433, allocations: 1.516 MB / 0.6691 GB, free: 7.395 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.5446, allocations: 263.6 kB / 0.6693 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/0.5652, allocations: 8.26 MB / 0.6774 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.5671, allocations: 171 kB / 0.6775 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002739/0.5674, allocations: 55.97 kB / 0.6776 GB, free: 14.5 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.0008576/0.5683, allocations: 266.6 kB / 0.6778 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/0.5695, allocations: 340.8 kB / 0.6782 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01222/0.5817, allocations: 3.596 MB / 0.6817 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.5818, allocations: 8 kB / 0.6817 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/0.5818, allocations: 8 kB / 0.6817 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.5818, allocations: 7.984 kB / 0.6817 GB, free: 10.25 MB / 494.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.01475/0.5966, allocations: 5.116 MB / 0.6867 GB, free: 5.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.5966, allocations: 3.938 kB / 0.6867 GB, free: 5.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000598/0.5972, allocations: 111.9 kB / 0.6868 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005449/0.6027, allocations: 1.578 MB / 0.6883 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.6028, allocations: 23.98 kB / 0.6884 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.021/0.6238, allocations: 10.76 MB / 0.6989 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6239, allocations: 0 / 0.6989 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01494/0.6388, allocations: 4.625 MB / 0.7034 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004915/0.6394, allocations: 211.5 kB / 0.7036 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/0.6397, allocations: 19.98 kB / 0.7036 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.6409, allocations: 87.84 kB / 0.7037 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006023/0.6415, allocations: 172.8 kB / 0.7039 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.724e-05/0.6416, allocations: 24 kB / 0.7039 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001053/0.6427, allocations: 0.6473 MB / 0.7045 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6427, allocations: 0 / 0.7045 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00169/0.6444, allocations: 443.6 kB / 0.7049 GB, free: 1.926 MB / 0.4981 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.0003162/0.6447, allocations: 125.7 kB / 0.7051 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006254/0.651, allocations: 2.292 MB / 0.7073 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.651, allocations: 0 / 0.7073 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004088/0.6551, allocations: 1.317 MB / 0.7086 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.6567, allocations: 348.6 kB / 0.7089 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/0.6611, allocations: 2.049 MB / 0.7109 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007556/0.6618, allocations: 1.077 MB / 0.712 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004022/0.6623, allocations: 99.33 kB / 0.7121 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.6625, allocations: 75.41 kB / 0.7121 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of SimCode: time 9.11e-07/0.6625, allocations: 4 kB / 0.7121 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of Templates: time 0.03557/0.6981, allocations: 21.65 MB / 0.7333 GB, free: 4.77 MB / 0.5294 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)