Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/Modelica 4.0.0+maint.om/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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 174.6 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.3 MB / 239.8 MB, free: 1.727 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009076/0.0009077, allocations: 95.97 kB / 290.9 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5309/0.5309, allocations: 78.62 MB / 420.7 MB, free: 44.21 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003935, allocations: 12 kB / 0.4888 GB, free: 2.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4088, allocations: 69.34 MB / 0.5565 GB, free: 38.85 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005915/0.4147, allocations: 5.684 MB / 0.5621 GB, free: 37.82 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.00417/0.419, allocations: 1.823 MB / 0.5638 GB, free: 36.53 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008416/0.4198, allocations: 10 kB / 0.5638 GB, free: 36.53 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005443/0.4204, allocations: 144 kB / 0.564 GB, free: 36.46 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001951/0.4223, allocations: 0.6326 MB / 0.5646 GB, free: 36.05 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001353/0.4237, allocations: 0.5037 MB / 0.5651 GB, free: 35.8 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.4253, allocations: 1.24 MB / 0.5663 GB, free: 35.18 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004417/0.4258, allocations: 228.9 kB / 0.5665 GB, free: 35.08 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000883/0.4267, allocations: 0.4977 MB / 0.567 GB, free: 34.86 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007605/0.4274, allocations: 0.6728 MB / 0.5677 GB, free: 34.57 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.4276, allocations: 56.34 kB / 0.5677 GB, free: 34.57 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005479/0.4282, allocations: 180.6 kB / 0.5679 GB, free: 34.54 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.4283, allocations: 229.3 kB / 0.5681 GB, free: 34.4 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.4285, allocations: 214.3 kB / 0.5683 GB, free: 34.27 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009389/0.4295, allocations: 1.09 MB / 0.5694 GB, free: 33.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4295, allocations: 6.812 kB / 0.5694 GB, free: 33.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4295, allocations: 0 / 0.5694 GB, free: 33.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.4295, allocations: 0 / 0.5694 GB, free: 33.93 MB / 426.7 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.007236/0.4368, allocations: 2.312 MB / 0.5716 GB, free: 32.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.4368, allocations: 8.312 kB / 0.5717 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004725/0.4416, allocations: 0.7677 MB / 0.5724 GB, free: 32.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.4431, allocations: 0.7579 MB / 0.5731 GB, free: 32.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.4434, allocations: 271.9 kB / 0.5734 GB, free: 32.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.4435, allocations: 75.03 kB / 0.5735 GB, free: 32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.4458, allocations: 1.247 MB / 0.5747 GB, free: 31.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.4458, allocations: 4 kB / 0.5747 GB, free: 31.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-05/0.4459, allocations: 29.3 kB / 0.5747 GB, free: 31.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.4459, allocations: 16.38 kB / 0.5747 GB, free: 31.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.4478, allocations: 1.016 MB / 0.5757 GB, free: 31.18 MB / 426.7 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.005818/0.4536, allocations: 3.618 MB / 0.5793 GB, free: 29.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007569/0.4612, allocations: 2.86 MB / 0.5821 GB, free: 28.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.4626, allocations: 0.7251 MB / 0.5828 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.436e-05/0.4627, allocations: 15.83 kB / 0.5828 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.4628, allocations: 46.03 kB / 0.5828 GB, free: 27.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=92): time 3.447e-06/0.4628, allocations: 0 / 0.5828 GB, free: 27.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.02819/0.491, allocations: 8.225 MB / 0.5909 GB, free: 26.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.4911, allocations: 96.59 kB / 0.5909 GB, free: 26.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.4928, allocations: 0.9599 MB / 0.5919 GB, free: 25.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/0.4931, allocations: 44.45 kB / 0.5919 GB, free: 25.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.4934, allocations: 455.4 kB / 0.5924 GB, free: 25.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.4938, allocations: 318.2 kB / 0.5927 GB, free: 25.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/0.4939, allocations: 29.75 kB / 0.5927 GB, free: 25.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.494, allocations: 358.4 kB / 0.593 GB, free: 24.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.4956, allocations: 0.756 MB / 0.5938 GB, free: 24.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.4973, allocations: 0.9756 MB / 0.5947 GB, free: 24.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.499, allocations: 0.8335 MB / 0.5955 GB, free: 23.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.499, allocations: 2.062 kB / 0.5955 GB, free: 23.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01565/0.5146, allocations: 4.929 MB / 0.6004 GB, free: 22.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.373e-05/0.5147, allocations: 7.219 kB / 0.6004 GB, free: 22.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.5148, allocations: 5.125 kB / 0.6004 GB, free: 22.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006858/0.5216, allocations: 1.864 MB / 0.6022 GB, free: 22.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.5231, allocations: 254.3 kB / 0.6024 GB, free: 22.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02153/0.5446, allocations: 8.77 MB / 0.611 GB, free: 17.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.5466, allocations: 208.5 kB / 0.6112 GB, free: 17.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.5467, allocations: 61 kB / 0.6113 GB, free: 17.5 MB / 426.7 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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005525/0.5473, allocations: 264.8 kB / 0.6115 GB, free: 17.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/0.5483, allocations: 359.9 kB / 0.6118 GB, free: 16.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.5605, allocations: 4.413 MB / 0.6162 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/0.5606, allocations: 12 kB / 0.6162 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.5606, allocations: 8 kB / 0.6162 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.689e-05/0.5606, allocations: 7.969 kB / 0.6162 GB, free: 12.69 MB / 426.7 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.01439/0.575, allocations: 5.973 MB / 0.622 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.5751, allocations: 4 kB / 0.622 GB, free: 6.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006482/0.5757, allocations: 107.9 kB / 0.6221 GB, free: 6.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005352/0.5811, allocations: 1.864 MB / 0.6239 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.5813, allocations: 23.98 kB / 0.624 GB, free: 4.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01919/0.6005, allocations: 10.8 MB / 0.6345 GB, free: 9.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.6005, allocations: 4 kB / 0.6345 GB, free: 9.477 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/0.6166, allocations: 5.515 MB / 0.6399 GB, free: 3.934 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.6172, allocations: 211.4 kB / 0.6401 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.6174, allocations: 19.98 kB / 0.6401 GB, free: 3.688 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.6184, allocations: 123.9 kB / 0.6402 GB, free: 3.566 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005318/0.619, allocations: 172.7 kB / 0.6404 GB, free: 3.398 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.619, allocations: 23.98 kB / 0.6404 GB, free: 3.375 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009066/0.62, allocations: 0.6356 MB / 0.641 GB, free: 2.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.62, allocations: 0 / 0.641 GB, free: 2.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001573/0.6215, allocations: 435.6 kB / 0.6415 GB, free: 2.305 MB / 442.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002984/0.6219, allocations: 142.2 kB / 0.6416 GB, free: 2.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006711/0.6286, allocations: 2.59 MB / 0.6441 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.6286, allocations: 0 / 0.6441 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004464/0.6331, allocations: 1.528 MB / 0.6456 GB, free: 14.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00172/0.6348, allocations: 376.2 kB / 0.646 GB, free: 13.63 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.639, allocations: 2.47 MB / 0.6484 GB, free: 11.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.6396, allocations: 1.081 MB / 0.6494 GB, free: 10.03 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.6399, allocations: 79.41 kB / 0.6495 GB, free: 9.949 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/0.64, allocations: 0 / 0.6495 GB, free: 9.949 MB / 458.7 MB Notification: Performance of Templates: time 0.03473/0.6747, allocations: 21.32 MB / 0.6703 GB, free: 4.582 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)