Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_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.000981/0.0009845, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.337/1.337, allocations: 223.2 MB / 238.9 MB, free: 5.484 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.001155/0.001155, allocations: 185 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.464/0.464, allocations: 79.43 MB / 420.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003916, allocations: 12 kB / 0.489 GB, free: 5.598 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1387, allocations: 69.52 MB / 0.5569 GB, free: 24 kB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2581/0.3968, allocations: 5.42 MB / 0.5622 GB, free: 37.29 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003902/0.4008, allocations: 1.84 MB / 0.564 GB, free: 37.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008038/0.4016, allocations: 12.72 kB / 0.564 GB, free: 37.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004906/0.4021, allocations: 154.4 kB / 0.5641 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.4039, allocations: 0.6807 MB / 0.5648 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.4051, allocations: 0.4939 MB / 0.5653 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.4066, allocations: 0.8995 MB / 0.5662 GB, free: 36.62 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003928/0.407, allocations: 233.1 kB / 0.5664 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007274/0.4078, allocations: 0.4923 MB / 0.5669 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007456/0.4085, allocations: 0.6595 MB / 0.5675 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.4086, allocations: 56.19 kB / 0.5676 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004906/0.4091, allocations: 169.3 kB / 0.5677 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.4093, allocations: 228.4 kB / 0.5679 GB, free: 36.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.4095, allocations: 216.5 kB / 0.5681 GB, free: 36.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009232/0.4104, allocations: 1.048 MB / 0.5692 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.4105, allocations: 0 / 0.5692 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4105, allocations: 1.25 kB / 0.5692 GB, free: 35.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.4105, allocations: 0 / 0.5692 GB, free: 35.95 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007444/0.4179, allocations: 2.314 MB / 0.5714 GB, free: 35.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.418, allocations: 9.594 kB / 0.5714 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005109/0.4231, allocations: 0.7696 MB / 0.5722 GB, free: 35.03 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.4247, allocations: 0.7525 MB / 0.5729 GB, free: 34.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/0.425, allocations: 266.5 kB / 0.5732 GB, free: 34.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.4251, allocations: 84.11 kB / 0.5733 GB, free: 34.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.4274, allocations: 1.239 MB / 0.5745 GB, free: 33.85 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.4274, allocations: 0 / 0.5745 GB, free: 33.85 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.4275, allocations: 33.75 kB / 0.5745 GB, free: 33.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.4275, allocations: 18.08 kB / 0.5745 GB, free: 33.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.4294, allocations: 1.011 MB / 0.5755 GB, free: 33.51 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.005912/0.4353, allocations: 3.857 MB / 0.5793 GB, free: 31.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00724/0.4426, allocations: 2.847 MB / 0.5821 GB, free: 30.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001704/0.4428, allocations: 20.78 kB / 0.5821 GB, free: 30.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.4428, allocations: 44.5 kB / 0.5821 GB, free: 30.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.958e-06/0.4428, allocations: 0 / 0.5821 GB, free: 30.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03005/0.4729, allocations: 8.401 MB / 0.5903 GB, free: 28.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.473, allocations: 98.78 kB / 0.5904 GB, free: 28.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.4749, allocations: 0.9602 MB / 0.5914 GB, free: 28.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.4753, allocations: 41.83 kB / 0.5914 GB, free: 28.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003682/0.4756, allocations: 458.4 kB / 0.5918 GB, free: 27.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004874/0.4761, allocations: 318.7 kB / 0.5921 GB, free: 27.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.4763, allocations: 26.28 kB / 0.5922 GB, free: 27.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4765, allocations: 358.1 kB / 0.5925 GB, free: 27.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001873/0.4784, allocations: 0.7519 MB / 0.5932 GB, free: 26.92 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001918/0.4803, allocations: 0.9721 MB / 0.5942 GB, free: 26.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/0.4821, allocations: 0.8351 MB / 0.595 GB, free: 26.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.4822, allocations: 5.438 kB / 0.595 GB, free: 26.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01528/0.4974, allocations: 4.915 MB / 0.5998 GB, free: 24.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.4975, allocations: 8.375 kB / 0.5998 GB, free: 24.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.4976, allocations: 7.469 kB / 0.5998 GB, free: 24.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006819/0.5044, allocations: 1.873 MB / 0.6016 GB, free: 24.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/0.5058, allocations: 254.5 kB / 0.6019 GB, free: 24.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02332/0.5292, allocations: 9.188 MB / 0.6109 GB, free: 20.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.5314, allocations: 199.9 kB / 0.6111 GB, free: 20.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00032/0.5318, allocations: 57.67 kB / 0.6111 GB, free: 20.43 MB / 430.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 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.0009347/0.5327, allocations: 261.8 kB / 0.6114 GB, free: 20.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/0.5341, allocations: 365 kB / 0.6117 GB, free: 19.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.5467, allocations: 4.419 MB / 0.616 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/0.5468, allocations: 11.95 kB / 0.616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.648e-05/0.5468, allocations: 11.98 kB / 0.616 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.411e-05/0.5468, allocations: 5.438 kB / 0.616 GB, free: 15.88 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 postOpt removeSimpleEquations (simulation): time 0.01445/0.5613, allocations: 6.024 MB / 0.6219 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.5614, allocations: 0.5 kB / 0.6219 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.562, allocations: 111.8 kB / 0.622 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005288/0.5673, allocations: 1.865 MB / 0.6239 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/0.5674, allocations: 19.98 kB / 0.6239 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/0.5858, allocations: 11.2 MB / 0.6348 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5858, allocations: 0 / 0.6348 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/0.6016, allocations: 5.529 MB / 0.6402 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005711/0.6022, allocations: 215.4 kB / 0.6404 GB, free: 6.406 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004038/0.6026, allocations: 17.06 kB / 0.6404 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.6038, allocations: 123.9 kB / 0.6406 GB, free: 6.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005456/0.6044, allocations: 172.7 kB / 0.6407 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.6045, allocations: 24 kB / 0.6407 GB, free: 6.078 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009716/0.6055, allocations: 0.6332 MB / 0.6414 GB, free: 5.438 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6055, allocations: 0 / 0.6414 GB, free: 5.438 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001936/0.6075, allocations: 439.7 kB / 0.6418 GB, free: 5.008 MB / 446.1 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.0003216/0.6078, allocations: 139.1 kB / 0.6419 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0065/0.6143, allocations: 2.579 MB / 0.6444 GB, free: 2.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.6143, allocations: 0 / 0.6444 GB, free: 2.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004193/0.6185, allocations: 1.535 MB / 0.6459 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.62, allocations: 352.8 kB / 0.6463 GB, free: 376 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.6243, allocations: 2.454 MB / 0.6487 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.625, allocations: 1.104 MB / 0.6497 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004123/0.6254, allocations: 98.25 kB / 0.6498 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.6256, allocations: 71.41 kB / 0.6499 GB, free: 12.64 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6256, allocations: 0 / 0.6499 GB, free: 12.64 MB / 462.1 MB Notification: Performance of Templates: time 0.03257/0.6582, allocations: 19.25 MB / 0.6687 GB, free: 9.578 MB / 478.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)